You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from beaker.cache import cache_regions, cache_region
# configure regions
cache_regions.update({
'short_term':{
'expire':'60',
'type':'memory'
}
})
@cache_region('short_term')
def load():
'''Load from a database given a search term, limit, offset.'''
return []
a = load()
------------------------------
a = load()
File "C:\Python27\lib\site-packages\beaker\cache.py", line 563, in cached
key_length = cache_regions[region]['key_length']
KeyError: 'key_length'
The text was updated successfully, but these errors were encountered:
amol-
added a commit
to TurboGears/beaker
that referenced
this issue
Oct 25, 2014
The text was updated successfully, but these errors were encountered: