Type alias CacheStructure<K, V>
CacheStructure<K, V>: {
delete(key) => void | Promise<void>;
get(key) => V | Promise<V>;
set(key, value) => void | Promise<void>;
}
Type declaration
-
delete:function
- delete(key): void | Promise<void>
-
Returns void | Promise<void>
-
get:function
- get(key): V | Promise<V>
-
Returns V | Promise<V>
-
set:function
- set(key, value): void | Promise<void>
-
Returns void | Promise<void>