Class RedisClient
A redis client with connection pooling.
Constructors
Name | Description |
this
(host, port)
|
|
Properties
Name | Type | Description |
redisVersion [get]
|
string | Returns Redis version
|
Methods
Name | Description |
auth
(password)
|
Authenticate to the server
|
configResetStat
()
|
Reset the stats returned by INFO
|
createSubscriber
()
|
Creates a RedisSubscriber instance for launching a pubsub listener
|
deleteAll
()
|
Deletes all keys from all databases.
|
echo
(data)
|
Echo the given string
|
getConfig
(parameter)
|
Get the value of a configuration parameter
|
getDatabase
(index)
|
Returns a handle to the given database.
|
info
()
|
Get information and statistics about the server
|
lastSave
()
|
Get the UNIX time stamp of the last successful save to disk
|
ping
()
|
Ping the server
|
quit
()
|
Close the connection
|
releaseUnusedConnections
()
|
Release all connections that are not in use. Call before exiting the
program to avoid relying on the GC to clean up the sockets.
|
save
()
|
Synchronously save the dataset to disk
|
setConfig
(parameter, value)
|
Set a configuration parameter to the given value
|
shutdown
()
|
Synchronously save the dataset to disk and then shut down the server
|
slaveOf
(host, port)
|
Make the server a slave of another instance, or promote it as master
|