Redis-driven Cache implementation.

Hierarchy

Constructors

Properties

redis: Redis

The Redis service.

Methods

  • Remove and return an item from the beginning of an array-like key.

    Parameters

    • key: string

    Returns Promise<undefined | string>

  • Decrement a key in the cache by a given amount.

    Parameters

    • key: string
    • Optional amount: number

    Returns Promise<undefined | number>

  • Fetch a value from the cache by its key.

    Returns

    Promise<any|undefined>

    Parameters

    • key: string

    Returns Promise<undefined | string>

  • Increment a key in the cache by a given amount.

    Parameters

    • key: string
    • Optional amount: number

    Returns Promise<undefined | number>

  • Store the given value in the cache by key.

    Parameters

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

    Returns Promise<void>