dynacache

Dynacache doesn't cache data

和自甴很熟 提交于 2019-12-12 05:15:42
问题 I am using Dynacache to cache data that will be eventually returned from a service call - to get things working I am just stubbing the data returned. I am using SimpleInjector for DI and got Dynacache registered with it as pointed out in the answer I got to a previous question So I have an integration project within my solution which contains the method I want to cache - which currently looks as below: [CacheableMethod(30)] public virtual List<MyResponse> GetDataByAccountNumber(int

Registering DynaCaches with SimpleInjector

六眼飞鱼酱① 提交于 2019-12-11 10:27:11
问题 Hi I am attempting to use Dynacache in my solution to cache data I am returning from Database so when I use Telerik grid to filter the data page etc I dont have to go back to the DB to get the data each time. The example on the DynaCache page shows it being used with Ninject DI as below: kernel.Bind<IDynaCacheService>().To<MemoryCacheService>(); kernel.Bind<ITestClass>().To(Cacheable.CreateType<TestClass>()); I am using SimpleInjector as my DI container. Has anyone used Dynacache with