{"library":"redis-lru","type":"library","category":null,"description":"A Redis-backed LRU cache for Node.js, version 0.6.0. It allows caching that persists across process restarts and is shareable between multiple Node.js processes via Redis. The API is inspired by node-lru-cache and supports both node_redis and ioredis clients. Offers configurable options such as max size, namespace, maxAge, custom scoring, and incremental scoring (usable as LFU). All methods return Promises. Compared to in-memory LRU caches, this provides durability and sharing, at the cost of network latency. Active development, with a steady release cadence (latest: 0.6.0).","language":"javascript","status":"active","version":"0.6.0","tags":["javascript","redis","lru","cache"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install redis-lru","imports":["import lru from 'redis-lru'","const lru = require('redis-lru')","const cache = lru(redisClient, options)","import lru from 'redis-lru'; const cache = lru(redisClient, { max: 10 })"]},{"cmd":"yarn add redis-lru","imports":[]},{"cmd":"pnpm add redis-lru","imports":[]}],"homepage":"https://github.com/facundoolano/redis-lru","github":"https://github.com/facundoolano/redis-lru","docs":null,"changelog":null,"pypi":null,"npm":"redis-lru","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}