From 44bbff9bac55f820a95c3a119ecec16b2fc39b7e Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Sat, 15 Feb 2020 23:36:13 +0800 Subject: [PATCH] Add RemoveExpiredEntries --- src/ServiceStack.Aws/DynamoDb/DynamoDbCacheClient.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ServiceStack.Aws/DynamoDb/DynamoDbCacheClient.cs b/src/ServiceStack.Aws/DynamoDb/DynamoDbCacheClient.cs index 3dded967..a8a1877d 100644 --- a/src/ServiceStack.Aws/DynamoDb/DynamoDbCacheClient.cs +++ b/src/ServiceStack.Aws/DynamoDb/DynamoDbCacheClient.cs @@ -59,7 +59,10 @@ private T GetValue(string key) return entry.Data.FromJson(); } - public void ClearExpiredEntries() + [Obsolete("Use RemoveExpiredEntries")] + public void ClearExpiredEntries() => RemoveExpiredEntries(); + + public void RemoveExpiredEntries() { var expiredIds = Dynamo.FromScan() .Filter(x => x.ExpiryDate < DateTime.UtcNow)