Skip to content
Snippets Groups Projects
Commit cd80019e authored by David Baker's avatar David Baker
Browse files

docs

parent d5528613
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,11 @@ def enumerate_leaves(node, depth): ...@@ -28,7 +28,11 @@ def enumerate_leaves(node, depth):
class LruCache(object): class LruCache(object):
"""Least-recently-used cache.""" """
Least-recently-used cache.
Supports del_multi only if cache_type=TreeCache
If cache_type=TreeCache, all keys must be tuples.
"""
def __init__(self, max_size, keylen=1, cache_type=dict): def __init__(self, max_size, keylen=1, cache_type=dict):
cache = cache_type() cache = cache_type()
self.size = 0 self.size = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment