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 has changed.
Return Value
Integer reply, a UNIX time stamp.
Syntax
Following is the basic syntax of Redis LASTSAVE command.
redis 127.0.0.1:6379> LASTSAVE
Example
redis 127.0.0.1:6379> LASTSAVE (integer) 1410853592
Pingback: Redis - Server - Adglob Infosystem Pvt Ltd