i would like to find a way to use the cache function with bottlenose, i found somewhere that i can do it with this code but unfortunately i don't know what to import to work with the cache :
def reader(cache_url):
return cache.ram(cache_url,lambda: None,time_expire=86400) #Time expire can be any value you want (3600 = 1hour)
def writer(cache_url, response_text):
cache.ram(cache_url,lambda: response_text,time_expire=0) #Time Expire always 0 here
can you help me ?
Thanks