7 lines
220 B
Plaintext
7 lines
220 B
Plaintext
A LRUDict is basically a simple dictionary, which has a defined
|
|
maximum capacity, that may be supplied at construction time, or
|
|
modified at run-time via the capacity property:
|
|
>>> cache = LRUDict(1)
|
|
>>> cache.capacity
|
|
1
|