Add users to the index
ids of the users
Bind a guild id to the cache
id of the guild that should be bound to this cache
Bind an object to the cache instance, you can read more on binding on the landing page of the documentation
Object to bind to this cache instance
Bind a user id to the cache, used by the member cache
id of the user
Returns a UserCache that has an id bound to it, which serves as the default argument to get, update and delete
Build an id consisting of $namespace.$id
id to append to namespace
constructed id
Filter for users by providing a filter function which returns true upon success and false otherwise
filter function to use for the filtering
Array of user ids, if omitted the global user index will be used
Find a user by providing a filter function which returns true upon success and false otherwise
filter function to use for filtering for a user
List of ids that should be used as the scope of the filter
Returns a User Cache with a bound user or null if no user was found
Get the number of users that are currently cached
Number of users currently cached
Get a list of currently indexed users, since users is a global namespace, this will return ALL users that the bot cached currently
Array with a list of ids of users that are indexed
Check if a user is indexed
True if the user is indexed, false otherwise
Remove a user from the cache
discord id of the user
Remove a user from the index
id of the user
Delete the user index, you should probably not use this function, but I won't stop you.
Delete keys from data if necessary based on RainCache structureDefs options and return the cleaned data
The data to possibly delete object entries from
guild id bound to this cache
Create a new UserCache
This class is automatically instantiated by RainCache
Storage engine to use for this cache
Optional, may be used to bind a user object to the cache
Generated using TypeDoc
Cache responsible for caching users