mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Docs for treecache
This commit is contained in:
parent
42eae4634f
commit
eaa836e8ca
@ -2,6 +2,11 @@ SENTINEL = object()
|
|||||||
|
|
||||||
|
|
||||||
class TreeCache(object):
|
class TreeCache(object):
|
||||||
|
"""
|
||||||
|
Tree-based backing store for LruCache. Allows subtrees of data to be deleted
|
||||||
|
efficiently.
|
||||||
|
Keys must be tuples.
|
||||||
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.root = {}
|
self.root = {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user