Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BaseCache

Default structure of the Cache. All the cache store are in this structure and must be.

Hierarchy

  • BaseCache

Implemented by

Index

Properties

Properties

delete

delete: (key: string) => number

Delete a cached key

Type declaration

    • (key: string): number
    • Parameters

      • key: string

      Returns number

empty

empty: () => void

Empties the cache store

Type declaration

    • (): void
    • Returns void

entries

entries: () => Pair[]

All the cached pairs

Type declaration

get

get: (key: string) => string | undefined

Get a cached key (returns undeserialized data)

Type declaration

    • (key: string): string | undefined
    • Parameters

      • key: string

      Returns string | undefined

set

set: (key: string, value: string) => string | undefined

Set a cached/new key (pass in the serialized data)

Type declaration

    • (key: string, value: string): string | undefined
    • Parameters

      • key: string
      • value: string

      Returns string | undefined

Generated using TypeDoc