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): Promise<undefined | T & DefaultMeta>

# Type Parameters

T

# Parameters

key: string

# Returns

Promise<undefined | T & DefaultMeta>


# set()

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

# Type Parameters

T

# Parameters

key: string

value: T & DefaultMeta

# Returns

Promise<void>