Interface IMemoryCache<TKey, TValue>
Namespace: PoeShared.Caching
Assembly: PoeShared.dll
Syntax
public interface IMemoryCache<TKey, TValue>
Type Parameters
| Name | Description |
|---|---|
| TKey | |
| TValue |
Properties
| Name | Description |
|---|---|
| CleanupPeriod | Time between cleanups. Cache is locked during cleanup period |
| CleanupTimeToLive | Items with lifetime > CleanupTimeToLive will be removed during Cleanup |
| Keys | |
| TimeToLive | Items is considered valid if it's lifetime is less than TTL, will be replaced with a new one otherwise on next request |
| Values |
Methods
| Name | Description |
|---|---|
| ContainsKey(TKey) | |
| GetOrAdd(TKey, Func<TKey, TValue>) | |
| GetOrUpdate(TKey, Func<TKey, TValue, TValue>) | |
| TryGetValue(TKey, out TValue) |