clay-resource-cache
JSON →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.
Resources
packageclay-resource-cache ↗
API endpoints
full doc /v1/registry/clay-resource-cache