MemcacheAdd Method (String, Object, DateTime) |
Adds data to the server; the key, value, and an expiration time are specified.
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public bool Add(
string key,
Object value,
DateTime expiry
)
Public Function Add (
key As String,
value As Object,
expiry As DateTime
) As Boolean
public:
bool Add(
String^ key,
Object^ value,
DateTime expiry
)
member Add :
key : string *
value : Object *
expiry : DateTime -> bool
Parameters
- key
- Type: SystemString
key to store data under - value
- Type: SystemObject
value to store - expiry
- Type: SystemDateTime
when to expire the record
Return Value
Type:
Booleantrue, if the data was successfully stored
See Also