15
15
# units are case insensitive so 1GB 1Gb 1gB are all the same.
16
16
17
17
# By default Redis does not run as a daemon. Use 'yes' if you need it.
18
- # Note that Redis will write a pid file in /var/run/redis_<%= redis_name %> .pid when daemonized.
18
+ # Note that Redis will write a pid file in /var/run/redis_<%= @ redis_name %> .pid when daemonized.
19
19
daemonize yes
20
20
21
21
# When running daemonized, Redis writes a pid file in /var/run/redis.pid by
22
22
# default. You can specify a custom pid file location here.
23
- pidfile /var/run/redis_<%= redis_name %> .pid
23
+ pidfile /var/run/redis_<%= @ redis_name %> .pid
24
24
25
25
# Accept connections on the specified port, default is 6379.
26
26
# If port 0 is specified Redis will not listen on a TCP socket.
27
- port <%= redis_port %>
27
+ port <%= @ redis_port %>
28
28
29
29
# If you want you can bind a single interface, if the bind option is not
30
30
# specified all the interfaces will listen for incoming connections.
31
31
#
32
- bind <%= redis_ip %>
32
+ bind <%= @ redis_ip %>
33
33
34
34
# Specify the path for the unix socket that will be used to listen for
35
35
# incoming connections. There is no default, so Redis will not listen
@@ -46,12 +46,12 @@ timeout 0
46
46
# verbose (many rarely useful info, but not a mess like the debug level)
47
47
# notice (moderately verbose, what you want in production probably)
48
48
# warning (only very important / critical messages are logged)
49
- loglevel <%= redis_loglevel %>
49
+ loglevel <%= @ redis_loglevel %>
50
50
51
51
# Specify the log file name. Also 'stdout' can be used to force
52
52
# Redis to log on the standard output. Note that if you use standard
53
53
# output for logging but daemonize, logs will be sent to /dev/null
54
- logfile <%= redis_log_dir %> /redis_<%= redis_name %> .log
54
+ logfile <%= @ redis_log_dir %> /redis_<%= @ redis_name %> .log
55
55
56
56
# To enable logging to the system logger, just set 'syslog-enabled' to yes,
57
57
# and optionally update the other syslog parameters to suit your needs.
@@ -66,7 +66,7 @@ logfile <%= redis_log_dir %>/redis_<%= redis_name %>.log
66
66
# Set the number of databases. The default database is DB 0, you can select
67
67
# a different one on a per-connection basis using SELECT < dbid > where
68
68
# dbid is a number between 0 and 'databases'-1
69
- databases <%= redis_nr_dbs %>
69
+ databases <%= @ redis_nr_dbs %>
70
70
71
71
################################ SNAPSHOTTING #################################
72
72
#
@@ -95,7 +95,7 @@ databases <%= redis_nr_dbs %>
95
95
rdbcompression yes
96
96
97
97
# The filename where to dump the DB
98
- dbfilename <%= redis_dbfilename %>
98
+ dbfilename <%= @ redis_dbfilename %>
99
99
100
100
# The working directory.
101
101
#
@@ -105,7 +105,7 @@ dbfilename <%= redis_dbfilename %>
105
105
# Also the Append Only File will be created inside this directory.
106
106
#
107
107
# Note that you must specify a directory here, not a file name.
108
- dir <%= redis_dir %> /redis_<%= redis_name %>
108
+ dir <%= @ redis_dir %> /redis_<%= @ redis_name %>
109
109
110
110
################################# REPLICATION #################################
111
111
@@ -241,7 +241,7 @@ slave-serve-stale-data yes
241
241
# errors for write operations, and this may even lead to DB inconsistency.
242
242
#
243
243
# maxmemory < bytes >
244
- maxmemory <%= redis_memory %>
244
+ maxmemory <%= @ redis_memory %>
245
245
246
246
# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
247
247
# is reached? You can select among five behavior:
@@ -265,7 +265,7 @@ maxmemory <%= redis_memory %>
265
265
# The default is:
266
266
#
267
267
# maxmemory-policy volatile-lru
268
- maxmemory-policy <%= redis_mempolicy %>
268
+ maxmemory-policy <%= @ redis_mempolicy %>
269
269
270
270
# LRU and minimal TTL algorithms are not precise algorithms but approximated
271
271
# algorithms (in order to save memory), so you can select as well the sample
@@ -319,7 +319,7 @@ appendonly no
319
319
# If unsure, use "everysec".
320
320
321
321
# appendfsync always
322
- appendfsync <%= redis_appedfsync %>
322
+ appendfsync <%= @ redis_appedfsync %>
323
323
# appendfsync no
324
324
325
325
# When the AOF fsync policy is set to always or everysec, and a background
0 commit comments