@resolid/cache-redis
v1.2.0
Published
Redis Cache store for @resolid/cache
Maintainers
Readme
Redis Cache store for @resolid/cache
Redis store for @resolid/cache
Features
- Built on top of @redis/client.
- TTL is handled directly by Redis.
- Supports Redis Clusters.
- Url connection string support or pass in your Redis Options
Installation
pnpm add @resolid/cache @resolid/cache-redis
# or
npm install @resolid/cache @resolid/cache-redis
# or
yarn add @resolid/cache @resolid/cache-redis
# or
bun add @resolid/cache @resolid/cache-redisUsage
import { Cacher } from "@resolid/cache";
import { RedisCache } from "@resolid/cache-redis";
const cache = new Cacher({
store: new RedisCache("redis://user:pass@localhost:6379"),
defaultTtl: 1000,
});License
MIT License (MIT). Please see LICENSE for more information.
