1. brianfrantz
  2. dogpile.cache

Commits

Mike Bayer  committed 476ed03

qualify backend names with dogpile.cache.

  • Participants
  • Parent commits d24c2d6
  • Branches default

Comments (0)

Files changed (3)

File dogpile/cache/__init__.py

View file
  • Ignore whitespace
 __version__ = '0.1.0'
 
-from region import CacheRegion, register_backend
+from region import CacheRegion, register_backend, make_region

File dogpile/cache/backends/__init__.py

View file
  • Ignore whitespace
 from dogpile.cache.region import register_backend
 
-register_backend("dbm", "dogpile.cache.backends.dbm", "DBMBackend")
-register_backend("pylibmc", "dogpile.cache.backends.memcached", "PylibmcBackend")
-register_backend("memory", "dogpile.cache.backends.memory", "MemoryBackend")
+register_backend("dogpile.cache.dbm", "dogpile.cache.backends.dbm", "DBMBackend")
+register_backend("dogpile.cache.pylibmc", "dogpile.cache.backends.memcached", "PylibmcBackend")
+register_backend("dogpile.cache.memory", "dogpile.cache.backends.memory", "MemoryBackend")

File tests/test_memory_backend.py

View file
  • Ignore whitespace
 
 class MemoryBackendTest(TestCase):
 
-    def _region(self, init_args={}, config_args={}, backend="memory"):
+    def _region(self, init_args={}, config_args={}, backend="dogpile.cache.memory"):
         reg = CacheRegion(**init_args)
         reg.configure(backend, **config_args)
         return reg