Adds an object of type T to the cache.
Namespace: ConnectedApps.Cms.Sdk.DataAssembly: ConnectedApps.Cms.Sdk.Data (in ConnectedApps.Cms.Sdk.Data.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic void Add<T>(
string key,
T value,
TimeSpan expiration
)
Public Sub Add(Of T) (
key As String,
value As T,
expiration As TimeSpan
)
public:
generic<typename T>
void Add(
String^ key,
T value,
TimeSpan expiration
)
member Add :
key : string *
value : 'T *
expiration : TimeSpan -> unit
Parameters
- key
- Type: SystemString
The key to store the object with. - value
- Type: T
The object to cache - expiration
- Type: SystemTimeSpan
The expiration by which the object will be evicted from the cache.
Type Parameters
- T
See Also