Skip to content

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 ​

NameDescription
keyThe cache key.
valueThe 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.