Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Add missing declared as a virtual method in cachbase

KrzysztofPajakeccac462f956
diff --git a/src/Core/Grand.Infrastructure/Caching/MemoryCacheBase.cs b/src/Core/Grand.Infrastructure/Caching/MemoryCacheBase.cs
index 8289588b7..ead9514f2 100644
--- a/src/Core/Grand.Infrastructure/Caching/MemoryCacheBase.cs
+++ b/src/Core/Grand.Infrastructure/Caching/MemoryCacheBase.cs
@@ -51,12 +51,12 @@ namespace Grand.Infrastructure.Caching
});
}
- public T Get<T>(string key, Func<T> acquire)
+ public virtual T Get<T>(string key, Func<T> acquire)
{
return Get<T>(key, acquire, CommonHelper.CacheTimeMinutes);
}
- public T Get<T>(string key, Func<T> acquire, int cacheTime)
+ public virtual T Get<T>(string key, Func<T> acquire, int cacheTime)
{
return _cache.GetOrCreate(key, entry =>
{