{"library":"level-lru-cache","type":"library","category":null,"description":"Simple LRU (Least Recently Used) cache implementation on top of LevelUP. Version 1.0.0 is the current stable release with no active development. It uses timestamps for eviction ordering, trading off worst-case consistency for simplicity. Unlike other caches, it avoids race conditions by performing all operations atomically within LevelUP batches, making it suitable for single-machine concurrent usage but not recommended for distributed systems. The cache stores multiple records per key with timestamps, cleaning up old records on each put and get. It requires a LevelUP instance with any LevelDOWN backend and sets a loose limit for key count.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","cache","level","lru"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install level-lru-cache","imports":["const Cache = require('level-lru-cache')","const { default: Cache } = await import('level-lru-cache')","const levelup = require('levelup')","const memdown = require('memdown')"]},{"cmd":"yarn add level-lru-cache","imports":[]},{"cmd":"pnpm add level-lru-cache","imports":[]}],"homepage":"https://github.com/kemitchell/level-lru-cache.js#readme","github":"https://github.com/kemitchell/level-lru-cache.js","docs":null,"changelog":null,"pypi":null,"npm":"level-lru-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}