Skip to content

Instantly share code, notes, and snippets.

@cnp96
Created December 20, 2020 15:22
Show Gist options
  • Save cnp96/9d225724446d2fd0a6c5bd69b3b3f379 to your computer and use it in GitHub Desktop.
Save cnp96/9d225724446d2fd0a6c5bd69b3b3f379 to your computer and use it in GitHub Desktop.
Redis persistence
appendonly yes # set no to disable aof
appendfsync everysec # tells the OS to write data on disk instead of waiting for more data in the buffer.
# Available options for appendfsync are
# always : sync after every write. Slowest, safest
# everysec : sync only once every second. Compromise
# no : don't sync, just let the OS flush data as it wants. Faster, risky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment