Skip to content
Snippets Groups Projects
Unverified Commit 8faccfc9 authored by Snawoot's avatar Snawoot Committed by GitHub
Browse files

Merge pull request #96 from acteru/master

advertise new kind of supported cache
parents f9033f68 0348ce99
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ The file is in YAML syntax with the following elements: ...@@ -32,7 +32,7 @@ The file is in YAML syntax with the following elements:
*cache*:: *cache*::
* *type*: (_str_: _internal_|_sqlite_|_redis_) cache backend type. Default: internal * *type*: (_str_: _internal_|_sqlite_|_redis_|_redis_sentinel_) cache backend type. Default: internal
* *options*: * *options*:
** Options for _internal_ type: ** Options for _internal_ type:
*** *cache_size*: (_int_) number of cache entries to store in memory. Default: 10000 *** *cache_size*: (_int_) number of cache entries to store in memory. Default: 10000
...@@ -42,6 +42,10 @@ The file is in YAML syntax with the following elements: ...@@ -42,6 +42,10 @@ The file is in YAML syntax with the following elements:
*** *timeout*: (_float_) timeout in seconds for acquiring connection from pool or DB lock. Default: 5 *** *timeout*: (_float_) timeout in seconds for acquiring connection from pool or DB lock. Default: 5
** Options for _redis_ type: ** Options for _redis_ type:
*** All parameters are passed to `aioredis.from_url` [0]. Check there for a parameter reference. *** All parameters are passed to `aioredis.from_url` [0]. Check there for a parameter reference.
** Options for _redis_sentinel_ type:
*** *sentinel_master_name*: (_str_) name of the sentinel master
*** *sentinels*: (_list_)(_tuple_) list of sentinels in form of ip/fqdn and port
*** All other parameters are passed to `aioredis.sentinel.Sentinel` [1]. For additional details check [2].
*proactive_policy_fetching*:: *proactive_policy_fetching*::
...@@ -99,3 +103,7 @@ domains operate under "testing" mode. ...@@ -99,3 +103,7 @@ domains operate under "testing" mode.
0.:: 0.::
https://aioredis.readthedocs.io/en/latest/api/high-level/#aioredis.client.Redis.from_url https://aioredis.readthedocs.io/en/latest/api/high-level/#aioredis.client.Redis.from_url
1.::
https://aioredis.readthedocs.io/en/latest/getting-started/#redis-sentinel-client
2.::
https://redis.readthedocs.io/en/stable/connections.html#sentinel-client
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment