fastcache 1.0.0
fastcache: ^1.0.0 copied to clipboard
A fast and efficient caching library for Dart applications.
Changelog #
1.0.0 #
Features #
-
FastCache - Base cache class with key-value storage and expiration management
- Support for setting default expiration time
- Basic operations: get/set/remove/clear
- getOrCreate for lazy initialization
- Expiration and eviction callbacks
-
FastCacheItem - Cache item class with fine-grained expiration control
- Incremental expiration updates
- Manual expiration reset
- Remaining/elapsed time queries
- Update callback mechanism
-
FastCacheLazy - Lazy cache with on-demand updates
- Synchronous and asynchronous get operations
- Configurable update cycle
- Stale marking and force update
- Update status tracking
-
FastCacheLru - LRU (Least Recently Used) cache
- Capacity limit with automatic eviction
- Synchronous and asynchronous operation versions
- Hybrid caching support (TTL + Lazy)
- Multiple iteration methods
-
FastCacheTtl - TTL (Time-To-Live) manager
- Periodic cleanup of expired items
- Start/reset/dispose controls
- Expiration callbacks
Dependencies #
- synchronized: ^3.4.1 - For thread-safe operations