Skip to content

🚀 react-smart-storage v1.2.0: TTL Support & Batch Key Deletion Now Available!

Choose a tag to compare

@DeviPrasadKL DeviPrasadKL released this 26 Apr 06:14
· 5 commits to main since this release
5be53dd

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 localStorage and sessionStorage.
  • ✨ Fully Type-Safe – Powered by TypeScript for robust, maintainable code.
  • 🚀 Lightweight & Fast – Minimal footprint, maximal convenience.

📦 Install via npm:

npm install react-smart-storage

Perfect for both beginners and seasoned developers, react-smart-storage helps you write clean, secure, and maintainable storage logic in your React apps.