-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtinyredis.conf
More file actions
43 lines (30 loc) · 1.9 KB
/
tinyredis.conf
File metadata and controls
43 lines (30 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# tinyredis.conf — example configuration file
#
# Usage: tinyredis /path/to/tinyredis.conf
# ── Network ──────────────────────────────────────────────────────────────────
# Accept connections on this IP address.
bind 127.0.0.1
# TCP port to listen on.
port 6379
# ── Persistence ───────────────────────────────────────────────────────────────
# Enable Append-Only File persistence.
appendonly yes
# Name of the AOF file (relative to the working directory).
appendfilename "tinyredis.aof"
# How often to fsync the AOF file to disk.
# always — fsync after every write (safest, slowest)
# everysec — fsync once per second in the background (default, recommended)
# no — let the OS decide (fastest, least safe)
appendfsync everysec
# ── Memory ────────────────────────────────────────────────────────────────────
# Maximum memory limit. 0 = no limit.
# Supports units: kb, mb, gb (e.g. 100mb, 1gb)
maxmemory 0
# Eviction policy when maxmemory is reached.
# Stored and reported in INFO; enforcement not yet implemented.
# noeviction | allkeys-lru | volatile-lru | allkeys-random | volatile-random
maxmemory-policy noeviction
# ── Security ──────────────────────────────────────────────────────────────────
# Require clients to issue AUTH <password> before processing other commands.
# An empty string or omitting this directive disables authentication.
# requirepass ""