0.1.8 • Published 6 years ago

redisifier v0.1.8

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Sample Usage

Connection

import redisifier from 'redisifier'
const client = redisifier({port, host, password, options}, [callback])

Without port and host entry client will try to connect localhost.

Methods

setKeyValue(key, value, callback)

Sets simple key value pair. Returns OK

getKeyValue(key, value, callback)

Gets key-value pair. Returns Key-Value

setHash(key, json, callback)

Sets hash (object). Returns OK.

getHash(key, callback)

Gets hash.

setList(key, array, callback)

Sets an list item and pushes the existing. Returns length of list.

getList(key, callback, index)

Gets list items, index is set to -1 for default which means everything will return. Index can be set to any.

createSet(key, array, callback)

Creates set, returns length.

getSet(key, callback)

Gets the elements of provided key.

isExists(key, callback)

Checks if the key exists. Returns true or false;

deleteKey(key, callback)

Deletes the provided key. Returns the length of deleted item.

setExpireTime(key, second, callback)

Sets to a key expire time. Returns number of keys which expired time setted.

This project depends on great library node-redis

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago