Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CacheProviderBase

A basic cache provider.

Hierarchy

Implements

Index

Methods

Methods

Abstract clear

  • clear(): this

Abstract get

  • get<TValue, TDefault>(key: any, defaultValue?: TDefault): TValue | TDefault
  • Returns a value from the cache.

    Type parameters

    • TValue

    • TDefault

    Parameters

    • key: any
    • Optional defaultValue: TDefault

    Returns TValue | TDefault

    The value.

Abstract has

  • has(key: any): boolean

Abstract set

  • set<TValue>(key: any, value: TValue): this
  • Sets a value for an object.

    chainable

    Type parameters

    • TValue

    Parameters

    • key: any
    • value: TValue

    Returns this

    this

Abstract unset

  • unset(key: any): this

Generated using TypeDoc