Class MemoryCacheAdapter<TType>

The MemoryCacheAdapter is used for easily facking ICache for testing.

IMPORT_PATH: "@daiso-tech/core/cache/memory-cache-adapter"

Type Parameters

  • TType = unknown

Implements

Constructors

Methods

  • The increment method increments the given key with given value. Returns true if the key where incremented otherwise false will be returned. If values is not defined then it will increment the key with 1. An error will thrown if the key is not a number.

    Parameters

    • key: string
    • value: number

    Returns Promise<boolean>

    TypeError