Skip to content

Commit 3582a60

Browse files
authored
Update README.md
1 parent 4565582 commit 3582a60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ Then you can inject it through Microsoft's DI container. Example:
1313
services.AddDynamoDbCache(
1414
o =>
1515
{
16-
o.TableName = "CustomerSubscriptions-Caching";
16+
o.TableName = "CustomerSubscriptions-Caching"; //The name of the DynamoDb table where the caching resides
17+
o.KeyColumnName = "key"; //This will be the partition key of your table. Make sure it has the same name in your infra code.
18+
o.TimeToLiveColumnName = "ttl_value"; //This will be the TTL column of your table. Make sure the TTL functionality is enabled and points to this exact same attribute name.
1719
});
1820
That's it! This will be injected as a singleton. Afterwards, you have access to the IDistributedCache in your application.
1921
Bear in mind, this has a dependency on AmazonDynamoDBClient client.

0 commit comments

Comments
 (0)