2.3.4 • Published 1 year ago

@jmrl23/redis-store v2.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Cache Manager Redis Store

Redis store for Cache Manager

Sample usage

import { caching } from 'cache-manager';
import redisStore from '@jmrl23/redis-store';

async function main() {
  const store = redisStore({
    url: 'redis://',
    prefix: 'Example',
  });
  const cache = await caching(store);

  await cache.set('message', 'Hello, World!');

  const message = await cache.get<string>('message');

  console.log(message); // Hello, World!

  await store.disconnect();
}

void main();

Options

KeyDescriptionType
prefixPrefix for keysstring?
ttlTime to Live, 0 is to disablenumber?
2.3.4

1 year ago

2.2.4

1 year ago

1.1.4

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago