Search Objects with LINQ Query
To utilize benefits of LINQ, LINQ is integrated with NCache using the NCacheQuery
class, which implements the IQueryable interface provided by .NET framework. This integration allows the user to run LINQ queries on cached items.
No code change is required for using NCache with LINQ except that a new assembly reference and namespace should be added in application. Rest of the code will work without any change in application.
Querying Objects through NCacheQuery class
You can use any of the following supported LINQ operators to retrieve NCache objects using NCacheQuery
:
See Also
LINQ Reference
Configuring LINQPad for NCache
Search Cache with SQL
Cache Events