Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis and RedisCache clients #94

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

vladimirmyshkovski
Copy link

@vladimirmyshkovski vladimirmyshkovski commented Dec 9, 2020

  • Add redis-client.js module
  • Replace client to imported redis-client in ioEmitter.js
  • Create cache module with RedisCacheClient .
  • Replace redis to ioredis in dependencies.

Now we can use it like that:

const redisCacheClient = require('cache');
const cache = redisCacheClient.child('products');
const name = `key`;
await cache.exists(name);
await cache.get(name);
await cache.set(name, html);
await cache.remove(name);
await cache.removeAll();

@vladimirmyshkovski vladimirmyshkovski changed the title Redis client Redis and RedisCache clients Sep 23, 2021
@vladimirmyshkovski
Copy link
Author

Guys, interesting your opinion about this improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant