New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aicore/libcache

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aicore/libcache - npm Package Compare versions

Comparing version 1.0.13 to 1.0.14

2

package.json
{
"name": "@aicore/libcache",
"version": "1.0.13",
"version": "1.0.14",
"description": "Cache library for core.ai services",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,5 +14,34 @@ # libcache

MEMCACHE_PASSWORD - used if MEMCACHIER_PASSWORD is not present
```js
// sample code on how to use library
import {putToCache, getValueFromCache, deleteKeyFromCache, closeCache} from '@aicore/libcache';
const key = 'hello';
const value = {
'name' : 'ram',
'age' : 100
};
const ttl = 100; // in seconds
try {
await putToCache(key, value, ttl);
}catch (e){
console.error(e);
}
try {
await getValueFromCache(key);
} catch (e){
console.error(e);
}
try {
await deleteKeyFromCache(key);
} catch (e){
console.log(e);
}
// close cache client
closeCache();
```
## Code Guardian

@@ -19,0 +48,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc