forked from Hay1tsme/artemis
db: add memcache toggle
This commit is contained in:
@ -150,6 +150,12 @@ class DatabaseConfig:
|
||||
default=10000,
|
||||
)
|
||||
|
||||
@property
|
||||
def enable_memcached(self) -> bool:
|
||||
return CoreConfig.get_config_field(
|
||||
self.__config, "core", "database", "enable_memcached", default=True
|
||||
)
|
||||
|
||||
@property
|
||||
def memcached_host(self) -> str:
|
||||
return CoreConfig.get_config_field(
|
||||
|
Reference in New Issue
Block a user