New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cacher/redis

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cacher/redis

Implementation of the redis adapter

0.2.0
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

NPM version NPM downloads

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'
});

Keywords

cache

FAQs

Package last updated on 27 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts