beaker expiretime invalid.
thanks in advance for any helps.
"""--- tests code ---"""
from beaker.cache import CacheManager
cm = CacheManager(type = "dbm", data_dir = cache_dir))
session_container = cm.get_cache("api.session")
# if have this line(call has_key() method), will print *expiretime is None*
*if (not session_container.has_key(key)): *
session_container.set_value(somekey, some_content, expiretime = 1800)
print("expiretime is %s" % session_container._get_container(somekey,
**session_container.kwargs).expiretime)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---