Interface: BasicCache


# Interface: BasicCache

If you want built in caching, implementing these methods (or utilitizing an library that includes these methods) is a must. Refer to the cache (opens new window) guide.

# Methods

# get

get<T>(key: string): Promise<undefined | T & DefaultMeta>

# Type parameters:

Name Type
T ApiSuccess

# Parameters:

Name Type
key string

Returns: Promise<undefined | T & DefaultMeta>

Defined in: Client.ts:91 (opens new window)


# set

set<T>(key: string, value: T & DefaultMeta): Promise<void>

# Type parameters:

Name Type
T ApiSuccess

# Parameters:

Name Type
key string
value T & DefaultMeta

Returns: Promise<void>

Defined in: Client.ts:94 (opens new window)