mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Allow configuration of Synapse's cache without using synctl or environment variables (#6391)
This commit is contained in:
parent
a8580c5f19
commit
7cb8b4bc67
32 changed files with 620 additions and 146 deletions
|
@ -38,7 +38,7 @@ class ResponseCache(object):
|
|||
self.timeout_sec = timeout_ms / 1000.0
|
||||
|
||||
self._name = name
|
||||
self._metrics = register_cache("response_cache", name, self)
|
||||
self._metrics = register_cache("response_cache", name, self, resizable=False)
|
||||
|
||||
def size(self):
|
||||
return len(self.pending_result_cache)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue