Show More
@@ -109,11 +109,12 b' def query_callable(manager):' | |||||
109 | return query |
|
109 | return query | |
110 |
|
110 | |||
111 | def get_cache_region(name, region): |
|
111 | def get_cache_region(name, region): | |
112 |
|
|
112 | if region not in beaker.cache.cache_regions: | |
113 |
|
|
113 | raise BeakerException('Cache region not configured: %s' | |
114 | kw = beaker.cache.cache_regions[region] |
|
114 | 'Check if proper cache settings are in the .ini files' % region) | |
115 | return beaker.cache.Cache._get_cache(name, kw) |
|
115 | kw = beaker.cache.cache_regions[region] | |
116 |
|
116 | return beaker.cache.Cache._get_cache(name, kw) | ||
|
117 | ||||
117 | def _get_cache_parameters(query): |
|
118 | def _get_cache_parameters(query): | |
118 | """For a query with cache_region and cache_namespace configured, |
|
119 | """For a query with cache_region and cache_namespace configured, | |
119 | return the correspoinding Cache instance and cache key, based |
|
120 | return the correspoinding Cache instance and cache key, based |
General Comments 0
You need to be logged in to leave comments.
Login now