Repository navigation
🚀 react-smart-storage v1.2.0: TTL Support & Batch Key Deletion Now Available!
We’re excited to introduce react-smart-storage v2.0, a lightweight utility library designed to simplify localStorage and sessionStorage in React applications with full TypeScript support. This update brings powerful new features, including TTL (Time-To-Live) support and batch key deletion, to help manage storage more efficiently.
🔥 Key Features:
- 🕒 TTL (Time-To-Live) Support – Automatically expire data after a specified duration to prevent stale data buildup and optimize storage.
- 🧹 Efficient Cleanup – Choose between lazy cleanup on access or eager background cleanup for optimal storage performance.
- 🧺 Batch Key Deletion – Easily remove multiple keys in one call using
removeMultiple(keys: string[])for better performance and cleaner code. - 🧠 Clean & Intuitive API – Just
setItem,getItem, and go! - 🔒 AES Encryption Support – Secure sensitive data with optional encryption.
- 💾 Dual Storage Support – Seamlessly switch between
localStorageandsessionStorage. - ✨ Fully Type-Safe – Powered by TypeScript for robust, maintainable code.
- 🚀 Lightweight & Fast – Minimal footprint, maximal convenience.
📦 Install via npm:
npm install react-smart-storagePerfect for both beginners and seasoned developers, react-smart-storage helps you write clean, secure, and maintainable storage logic in your React apps.