0.0.10 • Published 3 years ago

@fastcampus/fastcache v0.0.10

Weekly downloads
1,204
License
MIT
Repository
github
Last release
3 years ago

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...

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago