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)