Options
All
  • Public
  • Public/Protected
  • All
Menu

An in-memory implementation of the Cache. This is the default implementation for compatibility, but applications should switch to a persistent-backed cache driver.

Hierarchy

Index

Constructors

constructor

Properties

Static Private cacheArrays

cacheArrays: Collection<{ key: string; values: string[] }> = ...

Static collection of in-memory arrays.

Static Private cacheItems

cacheItems: Collection<{ expires?: Date; key: string; value: string }> = ...

Static collection of in-memory cache items.

Methods

arrayPop

  • arrayPop(key: string): Awaitable<undefined | string>

arrayPush

  • arrayPush(key: string, value: string): Awaitable<void>

decrement

  • decrement(key: string, amount?: number): Awaitable<undefined | number>

drop

fetch

  • fetch(key: string): undefined | string

has

increment

  • increment(key: string, amount?: number): Awaitable<undefined | number>

pop

  • pop(key: string): Awaitable<undefined | string>

put

  • put(key: string, value: string, expires?: Date): Awaitable<void>
Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.