File size: 318 Bytes
4bc63c7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import hashlib
import time
def memo(items=[]):
keys = []
for item in items:
keys.append(item[0])
return keys
def expiry(hours: int):
return hours * 86400
def touch(entry):
if entry.get('warm'):
return entry['key']
return ''
def mark(entry):
return 'key ' + entry['key']
|