mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 01:25:04 -04:00
Add some more type annotations to Cache
This commit is contained in:
parent
629a951b49
commit
7eff59ec91
3 changed files with 62 additions and 24 deletions
|
@ -64,7 +64,8 @@ class LruCache:
|
|||
Args:
|
||||
max_size: The maximum amount of entries the cache can hold
|
||||
|
||||
keylen: The length of the tuple used as the cache key
|
||||
keylen: The length of the tuple used as the cache key. Ignored unless
|
||||
cache_type is `TreeCache`.
|
||||
|
||||
cache_type (type):
|
||||
type of underlying cache to be used. Typically one of dict
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue