eric6/E5Utilities/E5Cache.py

changeset 8207
d359172d11be
parent 7923
91e843545d9a
equal deleted inserted replaced
8206:adf11836cfce 8207:d359172d11be
8 """ 8 """
9 9
10 from PyQt5.QtCore import QDateTime, QTimer 10 from PyQt5.QtCore import QDateTime, QTimer
11 11
12 12
13 class E5Cache(object): 13 class E5Cache:
14 """ 14 """
15 Class implementing a LRU cache of a specific size. 15 Class implementing a LRU cache of a specific size.
16 16
17 If the maximum number of entries is exceeded, the least recently used item 17 If the maximum number of entries is exceeded, the least recently used item
18 is removed from the cache. A cache hit moves the entry to the front of the 18 is removed from the cache. A cache hit moves the entry to the front of the

eric ide

mercurial