Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CacheProviderBase

A basic cache provider.

Hierarchy

Implements

Index

Constructors

Methods

Constructors

constructor

Methods

Abstract clear

Abstract get

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

    Type parameters

    • TValue = any

    • TDefault = TValue

    Parameters

    • key: any

      The key of the value.

    • Optional defaultValue: TDefault

    Returns TValue | TDefault

    The value.

Abstract has

  • has(key: any): boolean
  • Checks if the cache contains a value.

    Parameters

    • key: any

      The key of the value.

    Returns boolean

    Contains value or not.

Abstract set

  • Sets a value for an object.

    Type parameters

    • TValue

    Parameters

    • key: any

      The key of the value.

    • value: TValue

      The value to set.

    Returns CacheProviderBase

    this

Abstract unset

  • Sets a value for an object.

    Parameters

    • key: any

      The name of the value.

    Returns CacheProviderBase

    this

Generated using TypeDoc