Use LINQ Query to Search for Objects
Note
This feature is only available in NCache Enterprise Edition.
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 search objects using LINQ query.
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 for NCache
Configure LINQPad for NCache
SQL Search in Cache
Event Notifications in Cache