Read time of last successful save
Return the Unix timestamp of last successful save.
LASTSAVERDB, AOF, replication, failover, Lua scripts, functions, and cluster command references for operational Redis use.
RDB, AOF, rewrite, and durability-related commands.
Return the Unix timestamp of last successful save.
LASTSAVEBGREWRITEAOFBlock until writes reach a minimum number of replicas or timeout.
WAIT 1 5000Wait for AOF persistence conditions when supported.
WAITAOF 1 1000 5000Replica setup, role inspection, and controlled failover.
Turn the current node into a replica of a primary.
REPLICAOF 10.0.0.10 6379Stop replicating and promote current node to primary.
REPLICAOF NO ONEReturn whether this node is primary, replica, or sentinel and related metadata.
ROLEAsk a primary to hand off leadership to a replica.
FAILOVERReplication handshake command used internally by replicas.
PSYNC ? -1Server-side execution for atomic workflows and reusable logic.
EVAL "return redis.call('GET', KEYS[1])" 1 user:1:nameEVALSHA <sha1> 1 user:1:nameSCRIPT LOAD "return 1"SCRIPT EXISTS <sha1>SCRIPT FLUSHFUNCTION LOAD "#!lua name=mylib
redis.register_function('ping', function() return 'pong' end)"Inspect currently loaded libraries and functions.
FUNCTION LISTFCALL ping 0FUNCTION DELETE mylibRedis Cluster slot inspection and cluster-aware operations.
Read cluster state, slot coverage, and message counters.
CLUSTER INFOCLUSTER NODESCLUSTER SLOTSCLUSTER KEYSLOT user:{42}:profileCLUSTER COUNTKEYSINSLOT 1234Tell a cluster replica connection to serve reads.
READONLYDisable READONLY mode on a cluster connection.
READWRITESend ASKING before a redirected command during slot migration.
ASKING