Interface GenericCachingStrategy<T>

Type Parameters

  • T

Hierarchy

Methods

  • Returns the expiration time, or undefined if it doesn't exist

    Parameters

    • key: string

    Returns undefined | number

  • Returns the cached value, or undefined if it doesn't exist

    Parameters

    • key: string

    Returns undefined | T

  • Sets the value in the cache, with an optional expiration (as a future Game.time)

    Parameters

    • key: string
    • value: T
    • Optional expiration: number

    Returns void

Generated using TypeDoc