Skip to content

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