Skip to content

Commit

Permalink
Add caching service interfaces
Browse files Browse the repository at this point in the history
Introduced two new interfaces in the Promact.Core.Caching namespace to enhance caching capabilities. The ICachingService interface defines methods for setting, getting, and removing cache values. The ICachingUniqueKeyGenerationService interface provides a method for generating unique cache keys based on provided keys.
  • Loading branch information
chintans committed Jun 14, 2024
1 parent 71ebd19 commit 89f7b04
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Caching/ICachingService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Promact.Core.Caching
{
public interface ICachingService
{
void Set<T>(string key, T value);
T Get<T>(string key);
void Remove(string key);
}
}
7 changes: 7 additions & 0 deletions Caching/ICachingUniqueKeyGenerationService.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Promact.Core.Caching
{
public interface ICachingUniqueKeyGenerationService
{
string GenerateUniqueKey(string key);
}
}

0 comments on commit 89f7b04

Please sign in to comment.