コード例 #1
0
 def __init__(self):
     super(KVStore, self).__init__()
     try:
         self.cache = get_cache(settings.THUMBNAIL_CACHE)
     except InvalidCacheBackendError:
         self.cache = cache
コード例 #2
0
 def cache(self):
     try:
         kv_cache = get_cache(settings.THUMBNAIL_CACHE)
     except InvalidCacheBackendError:
         kv_cache = cache
     return kv_cache
コード例 #3
0
 def __init__(self):
     super(KVStore, self).__init__()
     try:
         self.cache = get_cache(settings.THUMBNAIL_CACHE)
     except InvalidCacheBackendError:
         self.cache = cache