On the cache side.....

function test(x):
    if cache.ram('key_%s' % x, 5):
         return cache.ram('key_%s' % x, 5)
    else:
         .....
    cache.ram('key_%s' % x, lambda: x , 5)


Reply via email to