ncache-client v0.0.7-alpha
ncache-client
NCache is a 100% Open Source in-memory distributed cache. NCache provides an extremely fast and linearly scalable distributed cache that caches application data and reduces expensive database trips. Use NCache to remove performance bottlenecks related to your data storage and databases and scale your node.js applications to extreme transaction processing (XTP).
Installation
NCache
NCache Node.js client requires a working NCache cluster to run. This cluster handles the storage and manipulation of the user data.
Client
npm install ncache-clientOverview
Usage
const ncache = require('ncache-client');
//Initialize the Cache Cluster
let cache = await ncache.CacheManager.getCache("test-Cache");
//Add data in Cache
await cache.add('key', new ncache.CacheItem("Value"));
// Get the value associated with the given key from cache
const cacheValue = await cache.get('key', ncache.JsonDataType.Scaler);
console.log("Item in cache"+ cacheValue +" against key "+'key'); //Outputs 'Value'
//close the cache
await cache.close();Features
- Cache Performance, Cache Scalability, Bulk Operations, Indexes
- Get, Add, Insert, Remove, Exists, Clear Cache, Expirations, Lock & Unlock
- Key Based Dependency, File Based Dependency, SQL Dependency, Oracle Dependency
- Publish/Subscribe (Pub/Sub) with Topic, Events with Data, Cached Item Specific Events (onInsert/onRemove), Cache Level Events (Add/Insert/Remove), Continuous Query
- Groups/Subgroups, Tags, Named Tags
- DataStructures : List, Queue, Counter
Testing
In order to test NCache Node.js client locally, you will need the following:
- Java 9 or newer
- NCache Installation
2 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago