Created
October 21, 2013 21:21
-
-
Save shazow/7091224 to your computer and use it in GitHub Desktop.
Disabled backend for dogpile.cache, useful for testing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dogpile.cache.api import CacheBackend, NO_VALUE | |
class DisabledBackend(CacheBackend): | |
def __init__(self, arguments): | |
pass | |
def get(self, key): | |
return NO_VALUE | |
def set(self, key, value): | |
pass | |
def delete(self, key): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment