Update README & add usage

This commit is contained in:
Jimmy
2021-09-29 16:22:04 +02:00
parent d67797a1d5
commit a40c54e9e7
2 changed files with 14 additions and 2 deletions

View File

@@ -17,6 +17,11 @@ class DynamoBackend(Backend):
As with all AWS clients, credentials will be taken from the environment. Check the AWS SDK
for more information.
Usage:
>> dynamodb = DynamoBackend(table_name="your-cache", region="eu-west-1")
>> await dynamodb.init()
>> FastAPICache.init(dynamodb)
"""
def __init__(self, table_name, region=None):