Skip to main content

QDefaultCache

@quik/core


@quik/core / QDefaultCache

Class: QDefaultCache

Defined in: features/QCache.ts:46

No-op cache feature implementation used when no cache is configured.

Implements

Constructors

Constructor

new QDefaultCache(): QDefaultCache

Returns

QDefaultCache

Methods

clear()

clear(): Promise<void>

Defined in: features/QCache.ts:88

No-op clear.

Returns

Promise<void>

Implementation of

IQCache.clear


delete()

delete(key): Promise<void>

Defined in: features/QCache.ts:72

No-op delete.

Parameters

key

string

Cache key.

Returns

Promise<void>

Implementation of

IQCache.delete


get()

get<T>(key): Promise<T>

Defined in: features/QCache.ts:52

Always resolves to undefined.

Type Parameters

T

T = unknown

Parameters

key

string

Cache key.

Returns

Promise<T>

Implementation of

IQCache.get


has()

has(key): Promise<boolean>

Defined in: features/QCache.ts:81

Always resolves to false.

Parameters

key

string

Cache key.

Returns

Promise<boolean>

Implementation of

IQCache.has


set()

set<T>(key, value, ttlMs?): Promise<void>

Defined in: features/QCache.ts:63

No-op set.

Type Parameters

T

T = unknown

Parameters

key

string

Cache key.

value

T

Value to store.

ttlMs?

number

Optional time-to-live in milliseconds.

Returns

Promise<void>

Implementation of

IQCache.set