{"library":"ocache","type":"library","category":null,"description":"ocache is a JavaScript/TypeScript library providing robust caching utilities for functions and HTTP handlers. It supports common caching strategies such as time-to-live (TTL), stale-while-revalidate (SWR), and multi-tier caching. Currently at version 0.1.4, it is under active development by the unjs organization, suggesting a focus on modularity and integration within their ecosystem, although it is designed to be standalone. Key differentiators include built-in request deduplication for cached functions, automatic HTTP response caching with `etag` and `last-modified` support, and a flexible multi-tier caching mechanism that allows for layered cache storage. The project appears to follow a rapid release cadence for minor enhancements and performance improvements, typical for libraries in their early 0.x development phase, with type definitions included for TypeScript users.","language":"javascript","status":"active","version":"0.1.4","tags":["javascript","typescript"],"install":[{"cmd":"npm install ocache","imports":["import { defineCachedFunction } from 'ocache';","import { defineCachedHandler } from 'ocache';","import { invalidateCache } from 'ocache';"]},{"cmd":"yarn add ocache","imports":[]},{"cmd":"pnpm add ocache","imports":[]}],"homepage":null,"github":"https://github.com/unjs/ocache","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ocache","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ocache/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}