API ReferenceAdapters
Overview
Storage and cache adapters for djs-commands — bring your own DB.
Each adapter implements the same Storage (or CacheAdapter) contract from @djs-commands/core. The framework's three built-in models — guild prefixes, disabled commands, channel locks — work transparently across all of them; pick whichever fits your stack.
For end-to-end setup walk-throughs (migrations, schema configuration, environment variables), see the Adapter Cookbook.
@djs-commands/adapter-drizzle
Postgres via Drizzle. drizzleStorage(db, options?).
@djs-commands/adapter-prisma
Generic Prisma client. prismaStorage(prisma, options?).
@djs-commands/adapter-mongoose
MongoDB via Mongoose. mongooseStorage(connection, options?).
@djs-commands/adapter-redis
TTL-native CacheAdapter for distributed cooldowns. redisCacheAdapter(redis, options?).
Last updated on
