mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 21:44:48 -04:00
Describe prune_unread_entries
in docstrings (#11876)
Should have been caught in #10826.
This commit is contained in:
parent
acda9f07c8
commit
f510fba4ba
4 changed files with 18 additions and 2 deletions
|
@ -340,6 +340,12 @@ class LruCache(Generic[KT, VT]):
|
|||
|
||||
apply_cache_factor_from_config (bool): If true, `max_size` will be
|
||||
multiplied by a cache factor derived from the homeserver config
|
||||
|
||||
clock:
|
||||
|
||||
prune_unread_entries: If True, cache entries that haven't been read recently
|
||||
will be evicted from the cache in the background. Set to False to
|
||||
opt-out of this behaviour.
|
||||
"""
|
||||
# Default `clock` to something sensible. Note that we rename it to
|
||||
# `real_clock` so that mypy doesn't think its still `Optional`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue