Add ids to the index of a namespace
ids to add
id of the parent object of the index
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
Build a unique key for the role cache entry
id of the role
id of the guild belonging to the role
the prepared key
Filter for roles by providing a filter function which returns true upon success and false otherwise
filter function to use for the filtering
id of the guild belonging to the roles
array of role ids that should be used for the filtering
array of bound role caches
Find a role by providing a filter function which returns true upon success and false otherwise
filter function to use for filtering for a single role
id of the guild belonging to the roles
array of role ids that should be used for the filtering
bound role cache
Get the number of elements that are within an index
id of the parent object of the index
Get all members from an index
id of the parent object of the index
Check if an id is a member of an index
id to check
id of the parent object of the index
returns true if it is a part of the index, false otherwise
Remove a role from the cache
id of the role
id of the guild belonging to the role
Remove an id from the index
id to be removed
id of the parent object of the index
Delete an index
id of the parent object of the index
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 RoleCache
This class is automatically instantiated by RainCache
Storage engine to use for this cache
Optional, may be used to bind a role object to the cache
Generated using TypeDoc
Cache responsible for storing role related data