From 680103c5a02e69a338d4544209905d9ef259c672 Mon Sep 17 00:00:00 2001 From: "Eric J. Smith" Date: Tue, 20 Feb 2024 10:15:17 -0600 Subject: [PATCH] Add IMemoryCacheClient interface --- src/Foundatio/Caching/IMemoryCacheClient.cs | 5 +++++ src/Foundatio/Caching/InMemoryCacheClient.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/Foundatio/Caching/IMemoryCacheClient.cs diff --git a/src/Foundatio/Caching/IMemoryCacheClient.cs b/src/Foundatio/Caching/IMemoryCacheClient.cs new file mode 100644 index 00000000..3bbe2dd7 --- /dev/null +++ b/src/Foundatio/Caching/IMemoryCacheClient.cs @@ -0,0 +1,5 @@ +namespace Foundatio.Caching; + +public interface IMemoryCacheClient : ICacheClient +{ +} diff --git a/src/Foundatio/Caching/InMemoryCacheClient.cs b/src/Foundatio/Caching/InMemoryCacheClient.cs index a9d4aace..5b7d5ad2 100644 --- a/src/Foundatio/Caching/InMemoryCacheClient.cs +++ b/src/Foundatio/Caching/InMemoryCacheClient.cs @@ -12,7 +12,7 @@ namespace Foundatio.Caching; -public class InMemoryCacheClient : ICacheClient +public class InMemoryCacheClient : IMemoryCacheClient { private readonly ConcurrentDictionary _memory; private bool _shouldClone;