Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@type-cacheable/redis-adapter

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@type-cacheable/redis-adapter

Adapter for using redis with type-cacheable

latest
Source
npmnpm
Version
17.3.2
Version published
Weekly downloads
6.2K
29.85%
Maintainers
1
Weekly downloads
 
Created
Source

@type-cacheable/redis-adapter

npm downloads

TypeScript-based caching decorators to assist with caching (and clearing cache for) async methods. This package supports the redis client.

View full documentation

Usage

Installation

npm install --save @type-cacheable/core @type-cacheable/redis-adapter

Note: If you are using redis v3.x.x, use @type-cacheable/redis-adapter v10.x.x. If you are using redis v4.x.x, use @type-cacheable/redis-adapter v11.x.x+.

or

yarn add @type-cacheable/core @type-cacheable/redis-adapter

Using adapter

import Redis from 'redis';
import { useAdapter } from '@type-cacheable/redis-adapter';

const client = Redis.createClient();
const clientAdapter = useAdapter(client);

Then you can rely on the @Cacheable, @CacheUpdate, and @CacheClear decorators from @type-cacheable/core. See core documentation

Keywords

cache

FAQs

Package last updated on 12 Mar 2026

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