-
Notifications
You must be signed in to change notification settings - Fork 4
/
redis.yml
25 lines (23 loc) · 1.12 KB
/
redis.yml
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
# # Canvas currently works without Redis, however some features require Redis and will be disabled.
# # Redis can also be used as a replacement for memcache, for both session store and caching.
#
# # The recommended setup is to define your redis server(s) in this file, and
# # then in cache_store.yml specify cache_store: redis_store without any servers
# # listed, which will tell Canvas to use this same server list.
#
production:
servers:
# list of redis servers to use in the ring
- "redis://<%= ENV['CACHE_PORT_6379_TCP_ADDR'] %>:<%= ENV['CACHE_PORT_6379_TCP_PORT'] %>"
test:
# only tests that are exercising the integration with redis require redis to run.
servers:
- "redis://<%= ENV['CACHE_PORT_6379_TCP_ADDR'] %>:<%= ENV['CACHE_PORT_6379_TCP_PORT'] %>"
# warning: the redis database will get cleared before each test, so if you
# use this server for anything else, make sure to set aside a database id for
# these tests to use.
database: 2
development:
servers:
# list of redis servers to use in the ring
- "redis://<%= ENV['CACHE_PORT_6379_TCP_ADDR'] %>:<%= ENV['CACHE_PORT_6379_TCP_PORT'] %>"