Show More
@@ -187,8 +187,10 b' def get_or_create_region(region_name, re' | |||
|
187 | 187 | def clear_cache_namespace(cache_region, cache_namespace_uid): |
|
188 | 188 | region = get_or_create_region(cache_region, cache_namespace_uid) |
|
189 | 189 | cache_keys = region.backend.list_keys(prefix=cache_namespace_uid) |
|
190 | num_delete_keys = len(cache_keys) | |
|
191 | if num_delete_keys: | |
|
190 | 192 | region.delete_multi(cache_keys) |
|
191 |
return |
|
|
193 | return num_delete_keys | |
|
192 | 194 | |
|
193 | 195 | |
|
194 | 196 | class ActiveRegionCache(object): |
General Comments 0
You need to be logged in to leave comments.
Login now