mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 04:57:54 +00:00
Update README & add usage
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user