Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemoryCache

since

4.0.0

version

2021-12-14

Hierarchy

  • MemoryCache

Index

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