Commits

Mike Bayer committed 476ed03

qualify backend names with dogpile.cache.

Comments (0)

Files changed (3)

dogpile/cache/__init__.py

 __version__ = '0.1.0'
 
-from region import CacheRegion, register_backend
+from region import CacheRegion, register_backend, make_region

dogpile/cache/backends/__init__.py

 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")

tests/test_memory_backend.py

 
 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