diff options
Diffstat (limited to 'requests_cache/backends/__init__.py')
-rw-r--r-- | requests_cache/backends/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/requests_cache/backends/__init__.py b/requests_cache/backends/__init__.py index d916ab8..6ea9c08 100644 --- a/requests_cache/backends/__init__.py +++ b/requests_cache/backends/__init__.py @@ -15,6 +15,11 @@ logger = getLogger(__name__) # Import all backend classes for which dependencies are installed try: + from .db import DBCache, DBStorage +except ImportError as e: + DBCache = DBStorage = get_placeholder_class(e) # type: ignore + +try: from .dynamodb import DynamoDbCache, DynamoDbDict except ImportError as e: DynamoDbCache = DynamoDbDict = get_placeholder_class(e) # type: ignore @@ -46,6 +51,7 @@ except ImportError as e: BACKEND_CLASSES = { + 'db': DBCache, 'dynamodb': DynamoDbCache, 'filesystem': FileCache, 'gridfs': GridFSCache, |