Package redis.clients.jedis.commands
Interface ControlBinaryCommands
- All Superinterfaces:
AccessControlLogBinaryCommands,ClientBinaryCommands
- All Known Implementing Classes:
Jedis
The interface about Redis management command
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Reports about different memory-related issues that the Redis server experiences, and advises about possible remedies.memoryUsage(byte[] key) Reports the number of bytes that a key and its value require to be stored in RAM.memoryUsage(byte[] key, int samples) Reports the number of bytes that a key and its value require to be stored in RAM.byte[]objectEncoding(byte[] key) Returns the internal encoding for the Redis object stored atkey.objectFreq(byte[] key) Returns the logarithmic access frequency counter of a Redis object stored atkey.List<byte[]> Returns the object subcommands and usages.objectIdletime(byte[] key) Returns the time in seconds since the last access to the value stored atkey.objectRefcount(byte[] key) Returns the reference count of the stored atkey.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.Methods inherited from interface redis.clients.jedis.commands.AccessControlLogBinaryCommands
aclCat, aclCatBinary, aclDelUser, aclDelUser, aclDryRunBinary, aclDryRunBinary, aclGenPassBinary, aclGenPassBinary, aclGetUser, aclListBinary, aclLoad, aclLogBinary, aclLogBinary, aclLogReset, aclSave, aclSetUser, aclSetUser, aclUsersBinary, aclWhoAmIBinaryMethods inherited from interface redis.clients.jedis.commands.ClientBinaryCommands
clientGetnameBinary, clientId, clientInfoBinary, clientKill, clientKill, clientKill, clientListBinary, clientListBinary, clientListBinary, clientNoEvictOff, clientNoEvictOn, clientPause, clientPause, clientSetInfo, clientSetname, clientUnblock, clientUnblock, clientUnpause
-
Method Details
-
roleBinary
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. The command also returns additional information about the state of the replication (if the role is master or slave) or the list of monitored master names (if the role is sentinel).- Returns:
- The information on the role of a Redis instance
-
objectRefcount
Returns the reference count of the stored atkey.- Parameters:
key- The key in Redis server- Returns:
- The reference count of the stored at
key
-
objectEncoding
byte[] objectEncoding(byte[] key) Returns the internal encoding for the Redis object stored atkey.See for details: OBJECT ENCODING key
- Parameters:
key- The key in Redis server- Returns:
- The number of references
-
objectIdletime
Returns the time in seconds since the last access to the value stored atkey. The command is only available when the maxmemory-policy configuration directive is not set to one of the LFU policies.- Parameters:
key- The key in Redis server- Returns:
- The idle time in seconds
-
objectHelpBinary
List<byte[]> objectHelpBinary()Returns the object subcommands and usages.- Returns:
- object subcommands and usages
-
objectFreq
Returns the logarithmic access frequency counter of a Redis object stored atkey.The command is only available when the maxmemory-policy configuration directive is set to one of the LFU policies.
- Parameters:
key- The key in Redis server- Returns:
- The counter's value
-
memoryDoctorBinary
byte[] memoryDoctorBinary()Reports about different memory-related issues that the Redis server experiences, and advises about possible remedies. -
memoryUsage
Reports the number of bytes that a key and its value require to be stored in RAM. The reported usage is the total of memory allocations for data and administrative overheads that a key its value require.See for details: MEMORY USAGE key
- Parameters:
key- The key in Redis server- Returns:
- The memory usage in bytes, or nil when the key does not exist
-
memoryUsage
Reports the number of bytes that a key and its value require to be stored in RAM. The reported usage is the total of memory allocations for data and administrative overheads that a key its value require.See for details: MEMORY USAGE key SAMPLES count
- Parameters:
key- The key in Redis server- Returns:
- The memory usage in bytes, or nil when the key does not exist
-