| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
TS-Node-Cache is a TypeScript-based caching solution that's simple and lightweight. It supports data caching with optional expiration and callbacks. Similar to memory-cache but with modern implementation and TypeScript support.
npm install @ebenezerdon/ts-node-cacheimport { Cache } from '@ebenezerdon/ts-node-cache'
const cache = new Cache()cache.put('myKey', 'myValue', 5000, () => console.log('Expired'))let value = cache.get('myKey')cache.del('myKey')cache.clear()cache.debug(true)To contribute:
This project is licensed under the ISC License - see the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |