replace_object


Description:

public bool replace_object (string key, string new_value)

Replaces the object corresponding to key with new_value.

If no such object exists in this, the function returns false.

Parameters:

this

an FileCache

key

the hash key of the object to replace

new_value

the new object for key

Returns:

true if successful, false if key was not found