Appearance
Set Method
Definition
- Namespace:
JASE.Caching - Assembly:
JASE.Caching.dll
void Set(TKey key, TValue value)
csharp
void Set(TKey key, TValue value)Adds or replaces the value associated with the specified key.
Parameters
| Name | Description |
|---|---|
key | The cache key. |
value | The value to store. |
Remarks
If an existing entry is replaced and TValue implements IDisposable, the prior value is disposed unless the eviction callback claims ownership.