MemcacheDelete Method (String, DateTime) |
Deletes an object from cache given cache key, a delete time, and an optional hashcode.
The item is immediately made non retrievable.
Keep in mind:
add(string, object) and
replace(string, object)
will fail when used with the same key will fail, until the server reaches the
specified time. However,
set(string, object) will succeed
and the new value will not be deleted.
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public bool Delete(
string key,
DateTime expiry
)
Public Function Delete (
key As String,
expiry As DateTime
) As Boolean
public:
bool Delete(
String^ key,
DateTime expiry
)
member Delete :
key : string *
expiry : DateTime -> bool
Parameters
- key
- Type: SystemString
the key to be removed - expiry
- Type: SystemDateTime
when to expire the record.
Return Value
Type:
Booleantrue, if the data was deleted successfully
See Also