public interface ControlCommands extends AccessControlLogCommands, ClientCommands
Modifier and Type | Method and Description |
---|---|
java.lang.String |
memoryDoctor()
Reports about different memory-related issues that the Redis server experiences,
and advises about possible remedies.
|
java.lang.String |
memoryPurge()
Attempts to purge dirty pages so these can be reclaimed by the allocator.
|
java.util.Map<java.lang.String,java.lang.Object> |
memoryStats()
Returns an Array reply about the memory usage of the server.
|
java.lang.Long |
memoryUsage(java.lang.String key)
Reports the number of bytes that a key and its value require to be stored in RAM.
|
java.lang.Long |
memoryUsage(java.lang.String key,
int samples)
Reports the number of bytes that a key and its value require to be stored in RAM.
|
java.lang.String |
objectEncoding(java.lang.String key)
Returns the internal encoding for the Redis object stored at
key . |
java.lang.Long |
objectFreq(java.lang.String key)
Returns the logarithmic access frequency counter of a Redis object stored at
key . |
java.util.List<java.lang.String> |
objectHelp()
Returns the object subcommands and usages.
|
java.lang.Long |
objectIdletime(java.lang.String key)
Returns the time in seconds since the last access to the value stored at
key . |
java.lang.Long |
objectRefcount(java.lang.String key)
Returns the reference count of the stored at
key . |
java.util.List<java.lang.Object> |
role()
Provide information on the role of a Redis instance in the context of replication,
by returning if the instance is currently a master, slave, or sentinel.
|
aclCat, aclCat, aclDelUser, aclDryRun, aclDryRun, aclGenPass, aclGenPass, aclGetUser, aclList, aclLoad, aclLog, aclLog, aclLogReset, aclSave, aclSetUser, aclSetUser, aclUsers, aclWhoAmI
clientGetname, clientId, clientInfo, clientKill, clientKill, clientKill, clientList, clientList, clientList, clientNoEvictOff, clientNoEvictOn, clientNoTouchOff, clientNoTouchOn, clientPause, clientPause, clientSetInfo, clientSetname, clientUnblock, clientUnblock, clientUnpause
java.util.List<java.lang.Object> role()
java.lang.Long objectRefcount(java.lang.String key)
key
.key
- The key in Redis serverkey
java.lang.String objectEncoding(java.lang.String key)
key
.
See for details: OBJECT ENCODING key
key
- The key in Redis serverjava.lang.Long objectIdletime(java.lang.String key)
key
.
The command is only available when the maxmemory-policy configuration directive
is not set to one of the LFU policies.key
- The key in Redis serverjava.util.List<java.lang.String> objectHelp()
java.lang.Long objectFreq(java.lang.String key)
key
.
The command is only available when the maxmemory-policy configuration directive is set to one of the LFU policies.
key
- The key in Redis serverjava.lang.String memoryDoctor()
java.lang.Long memoryUsage(java.lang.String key)
See for details: MEMORY USAGE key
key
- The key in Redis servernil
when the key does not existjava.lang.Long memoryUsage(java.lang.String key, int samples)
See for details: MEMORY USAGE key SAMPLES count
key
- The key in Redis servernil
when the key does not existjava.lang.String memoryPurge()
java.util.Map<java.lang.String,java.lang.Object> memoryStats()
Copyright © 2024. All rights reserved.