This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@fastcampus/fastcache
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

fastcache

fast and simple cache using redis

npm version

Getting Started

const { FastCache } = require('@fastcampus/fastcache');

const cache = FastCache.create({ redis: { host: 'localhost', port: 6379, db: 0 } });

await cache.set('foo', 'hello');
await cache.get('foo');
// hello

const list = cache.list('bar');
await list.unshift('one');
await list.push('two');
await list.getAll();
// [ one, two ]
await list.shift();
// one
await list.pop();
// two

const map = cache.map('baz');
await map.set('one', 'first');
await map.set('two', 'second');
await map.get('one');
// first
await map.getAll(['one', 'two']);
// [ first, second ]

Contributing

test

$ npm run test

build

$ npm run build

watch(continuous build)

$ npm start

may the SOURCE be with you...

Readme

Keywords

none

Package Sidebar

Install

npm i @fastcampus/fastcache

Weekly Downloads

1

Version

0.0.10

License

MIT

Unpacked Size

37.3 kB

Total Files

20

Last publish

Collaborators

  • heeok
  • hibiya
  • iolo
  • jaewon-noh
  • nodelay
  • rocio82
  • soomtong
  • starr9622
  • sujinnn
  • yoosoo