Use NCache for Data Caching
To get started with NCache in the production environment, NCache provides various pre-built samples that contain implement the usage of fairly prominent features of NCache. In this chapter, we will quickly go through a demonstration of NCache.
Before we understand how you use NCache, we will go through some of the features that NCache provides:
Basic Operations: NCache provides various CRUD APIs for caching application's data so that you can perform operations directly on the cache. This data can be single item or in bulk, can be accessed synchronously or asynchronously. NCache provides multiple basic CRUD APIs to cater to all sorts of data. To understand better, refer to Basic Operations for Caching Data.
SQL Search in Cache Using Groups, Tags, Named Tags: To search data in the cache on the basis of some logical criterion, NCache provides a faster and efficient searching mechanism in the form of SQL searching in cache. SQL search lets you search your cache according to the given criteria and return the result set. To understand better, refer to SQL Search in Cache using Groups, Tags, and Named Tags.
Group Cache Data: In NCache, a Group refers to a logical partition of data. It is used to group multiple cache items which makes querying data easier. To understand better, refer to Groups for Logical Data Grouping.
Tag Cache Data: In NCache, Tags are string-based identifiers that are associated with your data. By associating helpful keywords with your cached data, you can easily perform various cache operations on it. To understand better, refer to Tag Cache Data.
Named Tags with Cache Data: NCache provides a higher level of tagging in the form of Named Tags, where your tags can have types or names. These Named Tags help where you have to query data related to specific type of tag. To understand better, refer to Named Tags with Cache Data.
Data Structures: NCache provides exclusive support of storing data in data structures where the data is manipulated directly over the server. To understand better, refer to Data Structures in Cache.
Item Locking: NCache provides support of Item Locking that caters to concurrent updates in cache by acquiring locks. To understand better, refer to Locking Data in Cache.
In This Section
Use NCache for Data Caching in .NET/.NET Core
Describes how to use your .NET/.NET Core sample application along with NuGet packages.
Use NCache for Data Caching in Java
Explains how to get started with your Java sample application.
Use NCache for Data Caching in Node.js
Describes how to use your Node.js sample application.