redis-adapter 🔌
This is simple Redis client adapter with promises.
Methods and usage
- Create connection
const Redis = ; const client = port: 6379 host: '127.0.0.1'; client ; client;
- Connection with prefix
const client = port: 6379 host: '127.0.0.1' prefix: 'prefix';
- Call methods
client;
- Use
shape
for plain shapes:
clientshape blocks: 'smembers' 'blocks' hashName: 'hget' 'data' 'name' range: 'zrange' 'logs' 0 '+inf';
- Instant
multi
client;
Modify response
Methods:
- map
- filter
- reduce
- some
- every
- orderBy
- sort
- paginate
- count
- asc
- desc
- take
- takeLast
- reverse
- json
client ; client ; client