PersistedCache
Constructors
Signature
declare function make<K extends KeyAny, R>(options: { readonly inMemoryCapacity?: number; readonly inMemoryTTL?: any; readonly lookup: (key: K) => Effect<Success<K>, Failure<K>, R>; readonly storeId: string; readonly timeToLive: (...args: TimeToLiveArgs<K>) => DurationInput;}): Effect<PersistedCache<K>, never, any>Models
PersistedCache interface
Added in v1.0.0
Source
Signature
interface PersistedCache<K extends Persistence.ResultPersistence.KeyAny> { readonly get: (key: K) => Effect<Success<K>, any>; readonly invalidate: (key: K) => Effect<void, PersistenceError>;}