Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Redis Lastsave Command

Redis Lastsave Command

Redis Server

The Redis Lastsave command returns the last time Redis successfully saved data to disk, in UNIX timestamp format.

Syntax

The basic syntax of the redis Lastsave command is as follows:



redis 127.0.0.1:6379> LASTSAVE 

Available Version

= 1.0.0

Return Value

A string, a collection of text lines.

Example



redis 127.0.0.1:6379> LASTSAVE 

(integer) 1410853592

Redis Server