Commit Graph

7 Commits

Author SHA1 Message Date
Thor77 7acae1e45b Catch KeyError from pickle.load
and log exception as warning instead of debug.
KeyError seems to occur in Python2 instead of an UnpicklingError
2018-03-31 20:59:45 +02:00
Thor77 c32ed0360f Catch UnpicklingError in Cache.read 2018-03-31 20:49:10 +02:00
Thor77 9d9a7cf2b5 Add cached_files-property to Cache
to easily access store-keys without unwanted 'version'-key
2018-03-31 20:49:10 +02:00
Thor77 ff22ed86f2 Exclude version-key from iter and len 2018-03-31 20:49:10 +02:00
Thor77 7b3ecb039b Add funcdocs to Cache-class and methods 2018-03-31 20:49:10 +02:00
Thor77 662a359c4f Add version to Cache to avoid unneeded writes
as calls to Pickle.dump are rather expensive
2018-03-31 20:49:10 +02:00
Thor77 a10a93c7db Add tsstats.cache.Cache 2018-03-31 20:49:10 +02:00