-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new methods to ICachingService interface
- Added `using System.Collections.Generic;` to utilize collections. - Introduced `GetAllKeys()` method to return all cache keys as a `HashSet<string>`. - Implemented `GetAll()` method to fetch all cache entries as an `IDictionary<string, string>`.
- Loading branch information
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
namespace Promact.Core.Caching | ||
using System.Collections.Generic; | ||
|
||
namespace Promact.Core.Caching | ||
{ | ||
public interface ICachingService | ||
{ | ||
void Set<T>(string key, T value); | ||
T Get<T>(string key); | ||
void Remove(string key); | ||
HashSet<string> GetAllKeys(); | ||
IDictionary<string, string> GetAll(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters