
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@famcache/famcache
Advanced tools
  ;
To store a value in the cache:
await client.set('key', 'value', 30000);
To retrieve a value from the cache:
const value = await client.get('key');
To delete a value from the cache:
await client.del('key');
To publish data to the topic:
client.messaging.publish('topic', 'data');
To subscribe to the topic:
client.messaging.subscribe('topic', (data) => {
// ...
});
To unsubscribe from the topic:
client.messaging.unsubscribe('topic');
FamcacheClientnew FamcacheClient(options)Creates a new client instance.
client.set(key, value, ttl?)Sets a value in the cache.
client.get(key)Gets a value from the cache.
client.delete(key, callback)Deletes a value from the cache.
client.messaging.publish(topic, data)Publishes data to the topic
client.messaging.subscribe(topic, callback)Subscribes to the topic
client.messaging.unsubscribe(topic)Unsubscribes from the topic
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
Node-famcache is licensed under the MIT License. See the LICENSE file for more details.
FAQs
  
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies