w3resource

Redis Server: LASTSAVE

LASTSAVE

Redis LASTSAVE command returns the UNIX TIME of the last DB save executed with success. A client may check if a BGSAVE command succeeded reading the LASTSAVE value, then issuing a BGSAVE command and checking at regular intervals every N seconds if LASTSAVE changed.

Syntax:

LASTSAVE

Available since

1.0.0.

Return Value

Integer replies a UNIX time stamp.

Return Value Type

Integer

Example: Redis LASTSAVE

redis 127.0.0.1:6379> LASTSAVE 
(integer) 1410853592

Previous: INFO
Next: MONITOR



Follow us on Facebook and Twitter for latest update.