Add DynamoDB backend

This commit is contained in:
Jimmy
2021-09-29 16:14:28 +02:00
parent 8a8eb395ec
commit d67797a1d5
4 changed files with 372 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ class InMemoryBackend(Backend):
async def set(self, key: str, value: str, expire: int = None):
async with self._lock:
self._store[key] = Value(value, self._now + expire)
self._store[key] = Value(value, self._now + expire or 0)
async def clear(self, namespace: str = None, key: str = None) -> int:
count = 0