lib/cache.py: fixed expiration time
This commit is contained in:
parent
e1bd1bf4b4
commit
09e3d57b40
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ def store(signature, value):
|
||||||
|
|
||||||
value_record = {
|
value_record = {
|
||||||
"val": value_to_store,
|
"val": value_to_store,
|
||||||
"expiry": time.time() + _randint(1000, 2000)*1000,
|
"expiry": time.time() + _randint(1000, 2000),
|
||||||
}
|
}
|
||||||
|
|
||||||
CACHE[signature] = value_record
|
CACHE[signature] = value_record
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue