MemcacheSet Method (String, Object, DateTime) |
Stores data on 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 Set(
string key,
Object value,
DateTime expiry
)
Public Function Set (
key As String,
value As Object,
expiry As DateTime
) As Boolean
public:
bool Set(
String^ key,
Object^ value,
DateTime expiry
)
member Set :
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