{"library":"memcache-plus","title":"Memcache Plus","description":"memcache-plus is a Node.js memcache client with native Promise support, Elasticache auto-discovery, command buffering, and built-in compression. Current stable version is 0.3.1. Released irregularly. It differentiates from other memcache clients (like memcached) by providing a clean Promise-based API, automatic Elasticache cluster detection, and a flag to disable caching for testing. Supports both callbacks and Promises, and allows starting commands before connection (buffering).","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install memcache-plus"],"cli":null},"imports":["import MemcachePlus from 'memcache-plus'","const MemcachePlus = require('memcache-plus'); const client = new MemcachePlus(hosts);","import MemcachePlus from 'memcache-plus'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const MemcachePlus = require('memcache-plus');\n\nasync function main() {\n  const client = new MemcachePlus(['127.0.0.1:11211']);\n\n  // Wait for connection\n  await client.connect();\n\n  // Set a value\n  await client.set('key', 'value', 3600);\n\n  // Get a value\n  const val = await client.get('key');\n  console.log(val); // 'value'\n\n  // Delete\n  await client.delete('key');\n\n  // Disconnect\n  client.disconnect();\n}\n\nmain().catch(console.error);","lang":"javascript","description":"Shows how to create a client, connect, set/get/delete values, and disconnect.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}