0.1.4 • Published 8 years ago

skyer-redis-client-component v0.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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