Table of Contents

Enum SaveType

Namespace
StackExchange.Redis
Assembly
StackExchange.Redis.StrongName.dll

The type of save operation to perform

public enum SaveType

Fields

BackgroundRewriteAppendOnlyFile = 0

Instruct Redis to start an Append Only File rewrite process. The rewrite will create a small optimized version of the current Append Only File.

BackgroundSave = 1

Save the DB in background. The OK code is immediately returned. Redis forks, the parent continues to serve the clients, the child saves the DB on disk then exits. A client my be able to check if the operation succeeded using the LASTSAVE command.

[Obsolete("Saving on the foreground can cause significant blocking; use with extreme caution")] ForegroundSave = 2

Save the DB in foreground. This is almost never a good thing to do, and could cause significant blocking. Only do this if you know you need to save