skyer-redis-client-component

Skyer redis client component

Usage no npm install needed!

<script type="module">
  import skyerRedisClientComponent from 'https://cdn.skypack.dev/skyer-redis-client-component';
</script>

README

skyer-redis-client-component

npm version

Skyer redis client component.

Install

NPM

$ npm i --save skyer-redis-client-component

Register

/app/components/redis_client.component.js

module.exports = require('skyer-redis-client-component');

Usage

const redisClient = skyer.componentManager.getComponent('redisClient');

yield redisClient.set('skyer','hello!');

const result = yield redisClient.get('skyer');

console.log(result);

hello!

Options

See ioredis options (https://github.com/luin/ioredis/blob/master/API.md#new-redisport-host-options)

Licences

MIT