LASTSAVE

LASTSAVE

LASTSAVE
Available since
1.0.0
Time complexity
O(1)
ACL categories
@admin, @fast, @dangerous
Return 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. Redict considers the database saved successfully at startup.

Redict logo courtesy of @janWilejan, CC-BY-SA-4.0. Download SVG ⤑

Portions of this website courtesy of Salvatore Sanfilippo, CC-BY-SA-4.0.