public interface RedisServerCommands
| Modifier and Type | Interface and Description |
|---|---|
static class |
RedisServerCommands.ShutdownOption |
| Modifier and Type | Method and Description |
|---|---|
void |
bgReWriteAof()
Start an Append Only File rewrite process on server.
|
void |
bgSave()
Start background saving of db on server.
|
void |
bgWriteAof()
Deprecated.
As of 1.3, use
bgReWriteAof(). |
Long |
dbSize()
Get the total number of available keys in currently selected database.
|
void |
flushAll()
Delete all all keys from all databases.
|
void |
flushDb()
Delete all keys of the currently selected database.
|
List<RedisClientInfo> |
getClientList()
Request information and statistics about connected clients.
|
String |
getClientName()
Returns the name of the current connection.
|
List<String> |
getConfig(String pattern)
Load configuration parameters for given
pattern from server. |
Properties |
info()
Load default server information like
mempory
cpu utilization
replication
|
Properties |
info(String section)
Load server information for given
selection. |
void |
killClient(String host,
int port)
<<<<<<< HEAD Closes a given client connection identified by ip:port.
|
Long |
lastSave()
Get time of last
bgSave() operation in seconds. |
void |
resetConfigStats()
Reset statistic counters on server.
|
void |
save()
Synchronous save current db snapshot on server.
|
void |
setClientName(byte[] name)
Assign given name to current connection.
|
void |
setConfig(String param,
String value)
Set server configuration for
key to value. |
void |
shutdown()
Shutdown server.
|
void |
shutdown(RedisServerCommands.ShutdownOption option)
Shutdown server.
|
void |
slaveOf(String host,
int port)
Change redis replication setting to new master.
|
void |
slaveOfNoOne()
Change server into master.
|
Long |
time()
Request server timestamp using
TIME command. |
@Deprecated void bgWriteAof()
bgReWriteAof().http://redis.io/commands/bgrewriteaofvoid bgReWriteAof()
http://redis.io/commands/bgrewriteaofvoid bgSave()
http://redis.io/commands/bgsaveLong lastSave()
bgSave() operation in seconds.http://redis.io/commands/lastsavevoid save()
http://redis.io/commands/saveLong dbSize()
http://redis.io/commands/dbsizevoid flushDb()
http://redis.io/commands/flushdbvoid flushAll()
http://redis.io/commands/flushallProperties info()
http://redis.io/commands/infoProperties info(String section)
selection.http://redis.io/commands/infovoid shutdown()
http://redis.io/commands/shutdownvoid shutdown(RedisServerCommands.ShutdownOption option)
http://redis.io/commands/shutdownList<String> getConfig(String pattern)
pattern from server.pattern - http://redis.io/commands/config-getvoid setConfig(String param, String value)
key to value.param - value - http://redis.io/commands/config-setvoid resetConfigStats()
info().http://redis.io/commands/config-resetstatLong time()
TIME command.void killClient(String host, int port)
host - of connection to close.port - of connection to closevoid setClientName(byte[] name)
String getClientName()
http://redis.io/commands/client-getnameList<RedisClientInfo> getClientList()
List of RedisClientInfo objects.http://redis.io/commands/client-listvoid slaveOf(String host, int port)
host - port - http://redis.io/commands/slaveofvoid slaveOfNoOne()
http://redis.io/commands/slaveof