Reference documentation and code samples for the Memorystore V1BETA API module Google::Cloud::Memorystore::V1beta::PersistenceConfig::AOFConfig::AppendFsync.
Possible fsync modes.
Constants
APPEND_FSYNC_UNSPECIFIED
value: 0 Not set. Default: EVERY_SEC
NEVER
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.
EVERY_SEC
value: 2 Fsync every second. You may lose 1 second of data if there is a
disaster.
ALWAYS
value: 3 Fsync every time new write commands are appended to the AOF. The best
data loss protection at the cost of performance.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Memorystore V1BETA API - Module Google::Cloud::Memorystore::V1beta::PersistenceConfig::AOFConfig::AppendFsync (v0.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.0 (latest)](/ruby/docs/reference/google-cloud-memorystore-v1beta/latest/Google-Cloud-Memorystore-V1beta-PersistenceConfig-AOFConfig-AppendFsync)\n- [0.5.1](/ruby/docs/reference/google-cloud-memorystore-v1beta/0.5.1/Google-Cloud-Memorystore-V1beta-PersistenceConfig-AOFConfig-AppendFsync)\n- [0.4.0](/ruby/docs/reference/google-cloud-memorystore-v1beta/0.4.0/Google-Cloud-Memorystore-V1beta-PersistenceConfig-AOFConfig-AppendFsync)\n- [0.3.0](/ruby/docs/reference/google-cloud-memorystore-v1beta/0.3.0/Google-Cloud-Memorystore-V1beta-PersistenceConfig-AOFConfig-AppendFsync)\n- [0.2.0](/ruby/docs/reference/google-cloud-memorystore-v1beta/0.2.0/Google-Cloud-Memorystore-V1beta-PersistenceConfig-AOFConfig-AppendFsync)\n- [0.1.0](/ruby/docs/reference/google-cloud-memorystore-v1beta/0.1.0/Google-Cloud-Memorystore-V1beta-PersistenceConfig-AOFConfig-AppendFsync) \nReference documentation and code samples for the Memorystore V1BETA API module Google::Cloud::Memorystore::V1beta::PersistenceConfig::AOFConfig::AppendFsync.\n\nPossible fsync modes.\n\nConstants\n---------\n\n### APPEND_FSYNC_UNSPECIFIED\n\n**value:** 0 \nNot set. Default: EVERY_SEC\n\n### NEVER\n\n**value:** 1 \nNever fsync. Normally Linux will flush data every 30 seconds with this\nconfiguration, but it's up to the kernel's exact tuning.\n\n### EVERY_SEC\n\n**value:** 2 \nFsync every second. You may lose 1 second of data if there is a\ndisaster.\n\n### ALWAYS\n\n**value:** 3 \nFsync every time new write commands are appended to the AOF. The best\ndata loss protection at the cost of performance."]]