Interface ICache

Hierarchy

  • ICache

Methods

  • Add a value to a set and create the set if it doesn't exist. Returns a boolean where true means the value was inserted and false means the value already exists in the set.

    Type Parameters

    • T

    Parameters

    • key: string
    • value: T

    Returns Promise<boolean>

  • Get all values from a set

    Type Parameters

    • T

    Parameters

    • key: string
    • Optional options: ICacheOptions<T>

    Returns Promise<T[]>

  • Remove a value from the set if it exists. Returns a boolean where true means the operation was successful and false means the value doesn't exist in the set.

    Type Parameters

    • T

    Parameters

    • key: string
    • value: T

    Returns Promise<boolean>

Generated using TypeDoc