Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

Commit

Permalink
Add RemoveExpiredEntries
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Feb 15, 2020
1 parent 3b99b59 commit 44bbff9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ServiceStack.Aws/DynamoDb/DynamoDbCacheClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ private T GetValue<T>(string key)
return entry.Data.FromJson<T>();
}

public void ClearExpiredEntries()
[Obsolete("Use RemoveExpiredEntries")]
public void ClearExpiredEntries() => RemoveExpiredEntries();

public void RemoveExpiredEntries()
{
var expiredIds = Dynamo.FromScan<CacheEntry>()
.Filter(x => x.ExpiryDate < DateTime.UtcNow)
Expand Down

0 comments on commit 44bbff9

Please sign in to comment.