@theshelf/caching-driver-redis
v0.4.3
Published
This package contains the driver implementation for the Redis key-value store. This driver can be used by the [core package](../../core/README.md) for performing the actual operations.
Keywords
Readme
Caching Redis driver | The Shelf
This package contains the driver implementation for the Redis key-value store. This driver can be used by the core package for performing the actual operations.
Installation
npm install @theshelf/caching @theshelf/caching-driver-redisHow to use
The basic set up looks like this.
import CacheStore from '@theshelf/caching';
import { RedisDriver } from '@theshelf/caching-driver-redis';
const driver = new RedisDriver({/* Configuration options */});
const cacheStore = new CacheStore(driver);
// Perform operations with the cacheStore instanceConfiguration options
type RedisConfiguration = {
readonly url: string;
};