Google Cloud Redis Cluster V1 Client - Class AppendFsync (0.3.1)

Reference documentation and code samples for the Google Cloud Redis Cluster V1 Client class AppendFsync.

Available fsync modes.

Protobuf type google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync

Namespace

Google \ Cloud \ Redis \ Cluster \ V1 \ ClusterPersistenceConfig \ AOFConfig

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

APPEND_FSYNC_UNSPECIFIED

Value: 0

Not set. Default: EVERYSEC

Generated from protobuf enum APPEND_FSYNC_UNSPECIFIED = 0;

NO

Value: 1

Never fsync. Normally Linux will flush data every 30 seconds with this configuration, but it's up to the kernel's exact tuning.

Generated from protobuf enum NO = 1;

EVERYSEC

Value: 2

fsync every second. Fast enough, and you may lose 1 second of data if there is a disaster

Generated from protobuf enum EVERYSEC = 2;

ALWAYS

Value: 3

fsync every time new commands are appended to the AOF. It has the best data loss protection at the cost of performance

Generated from protobuf enum ALWAYS = 3;