@quantabit/storage-sdk
v1.0.2
Published
Enhanced localStorage/sessionStorage with TTL and namespaces
Downloads
428
Maintainers
Readme
@quantabit/storage-sdk
Enhanced localStorage with TTL, namespaces, and memory cache
Features
- QStorage — Class with TTL, JSON auto-serialize, namespace isolation
- SessionStore — sessionStorage wrapper
- useStorage — React hook with auto-sync
- Memory cache layer for performance
- Batch get/set operations
import { QStorage, useStorage } from '@quantabit/storage-sdk';
const store = new QStorage('app');
store.set('token', 'abc', 3600000); // 1 hour TTL
store.get('token'); // 'abc' (or null if expired)
const [theme, setTheme] = useStorage('theme', 'dark');License
MIT © QuantaBit Team
🌐 Brand & Links
- Official Mainnet: QuantaBit Chain
- Developer Platform: Developer Platform
- Open Platform: Open Platform
- Payment Platform: Pay Platform
- Feedback: Feedback
