Use NCache for Data Caching
To get started with NCache in the production environment, NCache provides various pre-built samples that 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 to use NCache, we will go through some of the features that NCache provides in NCache Professional:
Basic Operations: NCache provides various CRUD APIs for caching an application's data so that you can perform operations directly on the cache. This data can be a single item or a bulk of items. Data can be accessed synchronously. NCache provides multiple basic CRUD APIs to cater to all sorts of data. To understand better, refer to Basic Operations for Caching Data.
Data Expiration: NCache supports time-based data expiration strategies where you can specify the time or interval to expire your cached data. This ensures that the expiring stale data from the cache will result in fresh data being loaded in the cache on the next client request. To further take a look at the feature, refer to Data Expiration Strategies.
Item Locking: NCache provides an efficient locking mechanism for data synchronization and integrity within the cache store being updated by different parallel clients. NCache internal locking guarantees the consistency of data across the entire cache cluster for every update of data. To have a better understanding, refer to Locking Data For Concurrency and Control.
Pub/Sub Messaging: NCache supports the Pub/Sub messaging paradigm to exchange messages between multiple applications without any knowledge of the sending or receiving applications. NCache acts as a medium for the topic messages so that the publisher publishes and the subscriber subscribes to that particular topic. To have a better look, refer to Pub/Sub Messaging.
In This Section
NCache for Data Caching in .NET Core
Explains how to use your .NET sample application along with NuGet packages.
NCache for Data Caching in Java
Explains how to get started with your Java sample application.
NCache for Data Caching in Node.js
Explains how to use your Node.js sample application.
NCache for Data Caching in Python
Explains how to use your Python sample application.