# Class AppendFsync (0.5.1)

0.5.1 (latest) 0.5.0 0.4.0 0.3.0 0.2.0 0.1.14

    AppendFsync(value)

Available fsync modes.

| ## Enums ||
|---|---|
| **Name** | **Description** |
| `APPEND_FSYNC_UNSPECIFIED` | Not set. Default: EVERYSEC |
| `NO` | Never fsync. Normally Linux will flush data every 30 seconds with this configuration, but it's up to the kernel's exact tuning. |
| `EVERYSEC` | fsync every second. Fast enough, and you may lose 1 second of data if there is a disaster |
| `ALWAYS` | fsync every time new write commands are appended to the AOF. It has the best data loss protection at the cost of performance |