{"library":"ttl-set","type":"library","category":null,"description":"The `ttl-set` package provides a JavaScript `Set`-like data structure where each entry automatically expires after a specified time-to-live (TTL). It is currently at version 1.0.0, indicating a stable API with a well-defined feature set. The library's release cadence is likely infrequent due to its focused and stable utility functionality, serving as a robust solution for simple, time-bound caching needs. Its primary differentiator is the direct integration of TTL expiration into the `Set` interface, distinguishing it from general-purpose `Set` objects or more complex caching libraries that might offer LRU/LFU policies. This makes it ideal for scenarios requiring a basic, memory-efficient, and self-cleaning collection of unique values, such as tracking active sessions, recently seen items, or implementing basic rate-limiting without external dependencies or elaborate configuration. The core API mirrors `Set.prototype`, offering `add`, `has`, `clear`, and `size`.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","ttl","set","cache","time"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ttl-set","imports":["import TTLSet from 'ttl-set';","const TTLSet = require('ttl-set');"]},{"cmd":"yarn add ttl-set","imports":[]},{"cmd":"pnpm add ttl-set","imports":[]}],"homepage":null,"github":"https://github.com/watson/ttl-set","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ttl-set","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/ttl-set/compatibility"}}