1.0.2 • Published 3 years ago

discord-redis-cache v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

discord-redis-cache

Integrates Discord.js caching with Redis. Stores users, guilds, channels, messages, and emojis in a hash set of IDs (keys are the plural of the type: e.g. users, messages, etc.). You can subscribe to channels named [type]Set and [type]Delete which will contain a payload of the resource ID.

Example

const discord = require('discord.js');
const redis = require('discord-redis-cache')({
  host: '127.0.0.1' // these options can be found on redis.js.org
});

const client = new discord.Client();
redis(client);

client.login('token');