1. How can I view a currently cached value,  without any possibility of 
changing it?

2. Say I have this code:

def getvalue():
    try: 
        return function_that_may_not_complete()
    except:
        return None
        
cache.ram('MyValue', lambda: getvalue(), time_expire=60*60*24) 


If my getvalue()  function returns none,  I assume the cache will be 
cleared.  I do not want that to happen.
If  getvalue()returns None,  I want to re-cache the same value.

Hope the above makes sense.
Thanks



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to