cachy icon indicating copy to clipboard operation
cachy copied to clipboard

cache.increment got exception ValueError: invalid literal for int() with base 10: 'value'

Open mouday opened this issue 5 years ago • 1 comments

cache.increment('key', 1)

Traceback (most recent call last): File "workspace/DataSpider/script/orator-test.py", line 76, in cache.increment('key', 1) File ".pyenv/versions/py370/lib/python3.7/site-packages/cachy/stores/file_store.py", line 128, in increment integer = int(raw['data']) + value ValueError: invalid literal for int() with base 10: 'value'

mouday avatar Dec 12 '19 02:12 mouday

This is similar to errors seen when cachy is not not handling concurrent access from multiple processes, see #22.

mjpieters avatar Mar 17 '22 11:03 mjpieters