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

Redis Save Command

Redis Save Command

Redis Server

The Redis Save command performs a synchronous save operation, saving a snapshot of all data of the current Redis instance to disk as an RDB file.

Syntax

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



redis 127.0.0.1:6379> SAVE 

Available Version

= 1.0.0

Return Value

Returns OK on successful save.

Example



redis 127.0.0.1:6379> SAVE 

OK

Redis Server