Home Reference Source Test Repository

References

Class Summary

Static Public Class Summary
public

Methods for manipulating a hash on the redis server

public

Key

Methods for manipulating a single key on the redis server

public

Methods for manipulating a List on the server

public

Methods for maniplulating Set data on the webdis/redis stack.

Function Summary

Static Public Function Summary
public

checkStatus(response,: Object): Object

Check for 2xx response.status after fetch; used by request()

public

set common options for all webdis/redis requests

public

del(keys: ...string): Promise<number, Error>

deletes keys on the redis server (via DEL)

public

echo(message: string): Promise<string, Error>

echo message

public

Convenience function equivalent to new Hash(k)

public

Convenience function equivalent to new Key(k) to save typing "new" over and over

public

lists all keys or keys matching a pattern (via KEYS)

public

list(k: *): Object

convenience function equivalent to new List(k) to keep from typing "new" all the time

public

mget(redis: ...string): Promise<string[], Error>

read multiple redis keys via MGET

public

set multiple redis keys from javascript object via MSET

public

set multiple redis keys if and only if none of the keys exist; sets all of the keys or none (via MSETNX)

public

return an existing key at random (via RANDOMKEY)

public

request(command: Array, endPoint: string): Promise<Object, MyError>

send a command array to webdis, return a Promise of a javascript object response.

public

rset(k: *): Object

Convenience function equivalent to new Rset(k), to avoid typing "new" over and over

public

select(index: *): Promise<Array, Error>

select which redis database to use for this connection (via SELECT).

public

Pass non-objects unaltered, JSON.stringify objects/arrays.

public

JSON.parse stringified response into objects, pass unparseable content as is.