Pull global cache prefix from environment by default

pull/6391/head
Andrew Morgan 2020-04-30 16:00:42 +01:00
parent ca98241e18
commit 48709a9b22
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ _DEFAULT_EVENT_CACHE_SIZE = "10K"
class CacheProperties(object):
def __init__(self):
# The default factor size for all caches
self.default_factor_size = _DEFAULT_FACTOR_SIZE
self.default_factor_size = float(
os.environ.get(_CACHE_PREFIX, _DEFAULT_FACTOR_SIZE)
)
self.resize_all_caches_func = None