mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-03 06:19:59 -04:00
mapper.py is entirely 79 char lines now
This commit is contained in:
+325
-170
File diff suppressed because it is too large
Load Diff
@@ -1550,6 +1550,10 @@ else:
|
||||
time_func = time.time
|
||||
|
||||
class LRUCache(dict):
|
||||
"""Dictionary with 'squishy' removal of least
|
||||
recently used items.
|
||||
|
||||
"""
|
||||
def __init__(self, capacity=100, threshold=.5):
|
||||
self.capacity = capacity
|
||||
self.threshold = threshold
|
||||
|
||||
Reference in New Issue
Block a user