{"library":"clay-resource-cache","type":"library","category":null,"description":"Cache handler for clay-resources, part of the ClayDB ecosystem. Provides an LRU cache with configurable max size and TTL for caching clay-entity objects. Version 2.0.3 is the current stable release; the package is in maintenance mode with no recent updates. It wraps the popular lru-cache library internally and exposes a simple API: create cache with options, store an entity with a unique ID, and retrieve by ID. Unlike generic caching solutions, it integrates seamlessly with clay-entity and clay-resource patterns, but its utility is limited to that ecosystem. The package requires Node >=8 and has no runtime dependencies beyond clay-entity and lru-cache.","language":"javascript","status":"maintenance","version":"2.0.3","tags":["javascript","ClayDB"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install clay-resource-cache","imports":["const clayResourceCache = require('clay-resource-cache')","const { create } = require('clay-resource-cache')","const { ClayResourceCache } = require('clay-resource-cache')"]},{"cmd":"yarn add clay-resource-cache","imports":[]},{"cmd":"pnpm add clay-resource-cache","imports":[]}],"homepage":"https://github.com/realglobe-Inc/clay-resource-cache#readme","github":"https://github.com/realglobe-Inc/clay-resource-cache","docs":null,"changelog":null,"pypi":null,"npm":"clay-resource-cache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}