0.2.0 • Published 10 months ago

@cacher/redis v0.2.0

Weekly downloads
7
License
MIT
Repository
github
Last release
10 months ago

Implementation of the redis adapter

Installation

Node.js 14.0.0 or newer is required

Yarn

yarn add @cacher/redis

NPM

npm i @cacher/redis

Example usage

import { Cacher } from '@cacher/cacher';
import { RedisAdapter } from '@cacher/redis';

const adapter = new RedisAdapter();

// const adapter = new RedisAdapter({
//     connection: ioredisClient    
// });

// const adapter = new RedisAdapter({
//     connection: 'redis://:authpassword@127.0.0.1:6380/4'
// });

// const adapter = new RedisAdapter({
//     connection: {
//         hostname: 'localhost',
//         port: 6379,

//         username: '...',
//         password: '...',

//         database: 1
//     }
// });

const cacher = new Cacher({
    adapter,

    namespace: 'users'
});
0.2.0

10 months ago

0.1.1

2 years ago

0.1.0

3 years ago

0.0.1

4 years ago