Type Alias CacheOptions

CacheOptions: {
    storage?: Storage;
    storageKey?: string;
    ttl?: number;
}

Type declaration

  • Optionalstorage?: Storage

    Storage to persist cache

  • OptionalstorageKey?: string

    Key cache will be stored under

  • Optionalttl?: number

    Delete keys automatically after x amount of seconds