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 an id consisting of $namespace.$id
id to append to namespace
constructed id
Get a presence via user id
id of a discord user
Returns a new PresenceCache with bound data or null if nothing was found
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 stored presence from the cache
id of the user the presence belongs to
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
Upsert the presence of a user.
This function automatically removes the guild_id, roles and user of a presence update before saving it
id of the user the presence belongs to
updated presence data of the user
returns a bound presence cache
guild id bound to this cache
Create a new Presence Cache
This class is automatically instantiated by RainCache
Storage engine to use for this cache
Optional, may be used to bind a presence object to the cache
Generated using TypeDoc
Cache responsible for storing presence related data