A cache driver whose records are stored in a database table using the CacheModel.

Hierarchy

Constructors

Methods

  • Push an item onto the end an array-like key.

    Parameters

    • key: string
    • value: string

    Returns Promise<void>

  • Fetch a value from the cache by its key.

    Returns

    Promise<any|undefined>

    Parameters

    • key: string

    Returns Promise<undefined | string>

  • Check if the cache has the given key.

    Returns

    Promise

    Parameters

    • key: string

    Returns Promise<boolean>

  • Fetch an item from the cache by key, and then remove it.

    Parameters

    • key: string

    Returns Promise<string>

  • Store the given value in the cache by key.

    Parameters

    • key: string
    • value: string
    • Optional expires: Date

    Returns Promise<void>