From a01aa2ab26b5bfd1411761ff361a3a1a7f48c270 Mon Sep 17 00:00:00 2001 From: Chintan Shah Date: Sat, 15 Jun 2024 15:52:52 +0530 Subject: [PATCH] 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`. - Implemented `GetAll()` method to fetch all cache entries as an `IDictionary`. --- Caching/ICachingService.cs | 6 +++++- Promact.Core.csproj | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Caching/ICachingService.cs b/Caching/ICachingService.cs index e321459..6be0a60 100644 --- a/Caching/ICachingService.cs +++ b/Caching/ICachingService.cs @@ -1,9 +1,13 @@ -namespace Promact.Core.Caching +using System.Collections.Generic; + +namespace Promact.Core.Caching { public interface ICachingService { void Set(string key, T value); T Get(string key); void Remove(string key); + HashSet GetAllKeys(); + IDictionary GetAll(); } } diff --git a/Promact.Core.csproj b/Promact.Core.csproj index aa26687..1b4426b 100644 --- a/Promact.Core.csproj +++ b/Promact.Core.csproj @@ -9,9 +9,9 @@ https://github.com/Promact/Core https://github.com/Promact/Core README.md - 1.0.0.2 - 1.0.0.2 - 1.0.0.2 + 1.0.0.3 + 1.0.0.3 + 1.0.0.3