1.0.1 • Published 3 years ago

@gumlet/disk-lru-client v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Disk LRU Client - Nodejs

Nodejs client for Disk LRU server

npm install @gumlet/disk-lru-client

Usage:

// this contructor takes hostname and port as its arguments.
const lrucache = new LRU('localhost', 4001);

(async () => {
	await lrucache.set("key1","key1_value");

	// returns value as buffer.
	let val = await lrucache.get("key1"); 

	// has method checks existance of key
	let isAvailable = await lrucache.has("key1"); 

	// delete method deletes value from key
	let resp = await lrucache.delete("key1"); 
})();
1.0.1

3 years ago

1.0.0

3 years ago