Skip to content

Commit

Permalink
Add new methods to ICachingService interface
Browse files Browse the repository at this point in the history
- 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
chintans committed Jun 15, 2024
1 parent 1f06ac4 commit a01aa2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Caching/ICachingService.cs
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();
}
}
6 changes: 3 additions & 3 deletions Promact.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<PackageProjectUrl>https://github.com/Promact/Core</PackageProjectUrl>
<RepositoryUrl>https://github.com/Promact/Core</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<AssemblyVersion>1.0.0.2</AssemblyVersion>
<FileVersion>1.0.0.2</FileVersion>
<Version>1.0.0.2</Version>
<AssemblyVersion>1.0.0.3</AssemblyVersion>
<FileVersion>1.0.0.3</FileVersion>
<Version>1.0.0.3</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit a01aa2a

Please sign in to comment.