public interface ControlCommands extends AccessControlLogCommands, ClientCommands
Modifier and Type | Method and Description |
---|---|
String |
memoryDoctor()
Reports about different memory-related issues that the Redis server experiences,
and advises about possible remedies.
|
String |
memoryPurge()
Attempts to purge dirty pages so these can be reclaimed by the allocator.
|
Map<String,Object> |
memoryStats()
Returns an Array reply about the memory usage of the server.
|
Long |
memoryUsage(String key)
Reports the number of bytes that a key and its value require to be stored in RAM.
|
Long |
memoryUsage(String key,
int samples)
Reports the number of bytes that a key and its value require to be stored in RAM.
|
String |
objectEncoding(String key)
Returns the internal encoding for the Redis object stored at
key . |
Long |
objectFreq(String key)
Returns the logarithmic access frequency counter of a Redis object stored at
key . |
List<String> |
objectHelp()
Returns the object subcommands and usages.
|
Long |
objectIdletime(String key)
Returns the time in seconds since the last access to the value stored at
key . |
Long |
objectRefcount(String key)
Returns the reference count of the stored at
key . |
List<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, 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, clientPause, clientPause, clientSetname, clientUnblock, clientUnblock
List<Object> role()
Long objectRefcount(String key)
key
.key
- The key in Redis serverkey
String objectEncoding(String key)
key
.
See for details: OBJECT ENCODING key
key
- The key in Redis serverLong objectIdletime(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 serverList<String> objectHelp()
Long objectFreq(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 serverString memoryDoctor()
Long memoryUsage(String key)
See for details: MEMORY USAGE key
key
- The key in Redis servernil
when the key does not existLong memoryUsage(String key, int samples)
See for details: MEMORY USAGE key SAMPLES count
key
- The key in Redis servernil
when the key does not existString memoryPurge()
Copyright © 2022. All rights reserved.