Type Alias CacheOptions

CacheOptions: {
    expiryPolicy?: "delete" | "keep";
    storage?: Storage | Table<any, any>;
    storageKey?: string;
    ttl?: number;
}

Type declaration

  • OptionalexpiryPolicy?: "delete" | "keep"

    Keep or delete cached items once expired, defaults to delete

  • Optionalstorage?: Storage | Table<any, any>

    Storage to persist cache

  • OptionalstorageKey?: string

    Key cache will be stored under

  • Optionalttl?: number

    Delete keys automatically after x amount of seconds