{"library":"cachai","type":"library","category":null,"description":"cachai is an LRU cache for Node.js, forked from jscache and loosely based on ASP.NET's Cache. Version 1.0.2 is the latest stable release, though the package appears to be in maintenance mode with no recent updates. It provides caching options including absolute expiration, sliding expiration, priority, and a purge callback. Compared to alternatives like lru-cache or node-cache, it offers a more feature-rich API inspired by ASP.NET, but lacks modern ESM support and TypeScript typings.","language":"javascript","status":"maintenance","version":"1.0.2","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install cachai","imports":["const Cache = require('cachai')","const low = Cache.Priority.LOW","cache.setItem('key', value, { expirationAbsolute: new Date(), expirationSliding: 60, priority: Cache.Priority.NORMAL, onPurge: (k, v) => {} })"]},{"cmd":"yarn add cachai","imports":[]},{"cmd":"pnpm add cachai","imports":[]}],"homepage":"https://github.com/rstuven/node-cachai","github":"git://github.com/rstuven/node-cachai","docs":null,"changelog":null,"pypi":null,"npm":"cachai","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}