mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
Add size() to cacheHandlers
This commit is contained in:
@@ -93,6 +93,11 @@ export let cacheHandlers = {
|
||||
return cache[table].has(key);
|
||||
},
|
||||
|
||||
/** Get the number of key-value pairs */
|
||||
size: (table: TableName) => {
|
||||
return cache[table].size;
|
||||
},
|
||||
|
||||
// Done differently to have overloads
|
||||
/** Add a key value pair to the cache */
|
||||
set,
|
||||
|
||||
Reference in New Issue
Block a user