@zikeji/hypixel / 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 guide.
Methods
get()
get<
T>(key):Promise<T&DefaultMeta|undefined>
Type Parameters
T
T
Parameters
key
string
Returns
Promise<T & DefaultMeta | undefined>
set()
set<
T>(key,value):Promise<void>
Type Parameters
T
T
Parameters
key
string
value
T & DefaultMeta
Returns
Promise<void>