0.0.7-alpha • Published 5 years ago

ncache-client v0.0.7-alpha

Weekly downloads
94
License
ISC
Repository
-
Last release
5 years ago

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-client

Overview

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
5.3.3

2 years ago

5.3.0

4 years ago

5.2.1

5 years ago

5.2.0

5 years ago

1.0.0

5 years ago

0.2.0

5 years ago

0.1.0-alpha

5 years ago

0.0.9-alpha

5 years ago

0.0.7-alpha.2

5 years ago

0.0.8-alpha

5 years ago

0.0.7-alpha

5 years ago

0.0.6-alpha

5 years ago

0.0.5-alpha.1

5 years ago

0.0.4-alpha.1

5 years ago

0.0.4-alpha.2

5 years ago

0.0.3-alpha.2

5 years ago

0.0.3-alpha.1

5 years ago

0.0.2-alpha.1

5 years ago

0.0.1-alpha.4

5 years ago

0.0.1-alpha.3

5 years ago

0.0.1-alpha.2

5 years ago

0.0.1-alpha.1

5 years ago