Mike Bayer avatar 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.