read CAREFULLY http://web2py.com/books/default/chapter/29/04/the-core#cache .
Unfortunately (?) web2py's cache isn't "the usual" cache object, as it's designed to store indefinitely values that do not expire automatically. Basically time_expire vouches to either fetch the stored value or to update the one already in cache. time_expire=None forces the retrieval of the stored value, without updating it, so you MAY use it for your usecase. NB: The redis backend needs to adhere to the same API web2py has, but leverages redis evictions postponing a bit the real expiration. On Wednesday, November 16, 2016 at 2:53:52 PM UTC+1, Pierre wrote: > > how do I retrieve a key,value pair stored in the redis cache ? > > am doing this : > > message = cache.redis('message', lambda: 'Hello', time_expire=360) > > > now i want to test that key='message' still exists and get its value ? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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/d/optout.