Adjusted cache to allow for throttling and locking.

This commit is contained in:
2025-02-26 23:10:36 -05:00
parent 6835431d1e
commit c1a7d23096
5 changed files with 89 additions and 31 deletions

View File

@@ -2,6 +2,6 @@
public interface ICache<TKey, TValue>
{
TValue? Get(TKey key);
TValue? Refresh(TKey key);
Task<TValue?> GetAsync(TKey key, CancellationToken cancellationToken);
Task<TValue?> RefreshAsync(TKey key, CancellationToken cancellationToken);
}