Since

4.0.0

Version

2021-12-14

Hierarchy

  • MemoryCache

Constructors

Methods

  • GetCache<T>(name: string): undefined | T
  • Since

    1.0.5

    Version

    2021-12-07

    Type Parameters

    • T

    Parameters

    • name: string

    Returns undefined | T

  • GetValue<T>(name: string, defaultValueIfNotExist?: T): undefined | T
  • Version

    1.0.0

    Since

    1.0.5

    Type Parameters

    • T

    Parameters

    • name: string
    • Optional defaultValueIfNotExist: T

    Returns undefined | T

  • RemoveCache(...names: string[]): void
  • Since

    1.0.5

    Version

    2021-12-14

    Parameters

    • Rest ...names: string[]

    Returns void

  • RemoveValue(name: string): void
  • Version

    1.0.0

    Since

    1.0.5

    Parameters

    • name: string

    Returns void

  • SetCacheWithDate(name: string, value: unknown, absoluteExpiration: Date): void
  • Since

    1.0.5

    Version

    2021-12-14

    Parameters

    • name: string
    • value: unknown
    • absoluteExpiration: Date

    Returns void

  • SetCacheWithHour(name: string, value: unknown, hour: number): void
  • Since

    1.0.5

    Version

    2021-12-14

    Parameters

    • name: string
    • value: unknown
    • hour: number

    Returns void

  • SetCacheWithMilliseconds(name: string, value: unknown, millisecond: number): void
  • Since

    1.0.5

    Version

    2021-12-14

    Parameters

    • name: string
    • value: unknown
    • millisecond: number

    Returns void

  • SetCacheWithMinute(name: string, value: unknown, minute: number): void
  • Since

    1.0.5

    Version

    2021-12-14

    Parameters

    • name: string
    • value: unknown
    • minute: number

    Returns void

  • SetValue(name: string, value: any): void
  • Version

    1.0.0

    Since

    1.0.5

    Parameters

    • name: string
    • value: any

    Returns void

Generated using TypeDoc