We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b629c7b commit 5479cddCopy full SHA for 5479cdd
src/api/util/settings.py
@@ -1,19 +1,23 @@
1
import json
2
3
+
4
def get_settings():
5
"""Parses the settings from redis-live.conf.
6
"""
7
# TODO: Consider YAML. Human writable, machine readable.
8
return json.load(open("redis-live.conf"))
9
10
11
def get_redis_servers():
12
config = get_settings()
13
return config["RedisServers"]
14
15
16
def get_redis_stats_server():
17
18
return config["RedisStatsServer"]
19
20
21
def get_data_store_type():
22
23
return config["DataStoreType"]
0 commit comments