Suraj Sharma
Suraj Sharma

Reputation: 69

Is there any caching framework available for .NET?

I've searched and researched whole stackexchange stuffs but couldn't find anything properly that could help me in my situation. Summary goes like this, I want to implement a caching store mechanism in C# which will help me in accessing the data faster but catch is that I need that data to be properly synced with database. For example: My applications has various modules which governs various areas for the client to access. I want an framework which at the time of login gets all the required module information for the user and maintains the cache (I can do that through code) during the lifetime of the user if there is any change/updation in the module information in the DB that should reflect in the cache dynamically

I tried to look for: 1. Redis : But it is not solving the problem as far as I've searched it handle the static data. 2. I can use SQLCacheDependency class but don't know the use case I am looking for handles this or not.

Meanwhile I am looking for NCache for .NET.

Any ideas on how to tackle this or is there any framework that I can use with .NET?

Thanks

Upvotes: 1

Views: 107

Answers (1)

Basit Anwer
Basit Anwer

Reputation: 6870

You're heading in the right direction. Use NCache Open Source for caching needs.

For DB synchronization use SQL Notification and invalidate items in the cache yourself.

SQL Synchronization is by default fully supported in NCache Enterprise but you would have to buy it then.

http://www.alachisoft.com/ncache/database-synchronization.html

Upvotes: 2

Related Questions