π Tauri Plugin Cache v0.1.5
This release extends the multiple compression methods support to mobile platforms, with optimized implementations for both Android and iOS.
β¨ New Features
- Platform-Specific Optimizations: Native implementations tailored for each platform
- Mobile LZMA2 Compression: Optimized LZMA2 compression for mobile environments
- Automatic Fallback Mechanisms: Graceful degradation when memory limits are reached
- Full Mobile Support: Complete implementation of cache functionality for Android and iOS
- Memory-Efficient Processing: Smart memory management for resource-constrained devices
π Technical Details
- Android Implementation: Native Kotlin implementation with LZMA2 support
- iOS Implementation: Complete Swift implementation with PLzmaSDK integration
- Memory Safeguards: Automatic size limits for LZMA2 compression on mobile devices
- Efficient Buffer Management: Optimized buffer sizes and streaming for large data sets
- Cross-Platform Consistency: Same compression methods and identifiers across all platforms
π§° Features
- Type Safety: Full TypeScript typings
- Cache Statistics: Monitor cache usage
- Optional TTL: Set expiration times for cache items
- Disk-based Cache: Persistent data storage and retrieval
- Data Compression: Enable compression for large data items
- Cross-Platform: Works on desktop and mobile (Android and iOS)
- Memory Caching: In-memory caching layer for improved performance
- Performance Optimized: Buffered I/O and chunked processing for large datasets
- Multiple Compression Methods: Choose between Zlib (fast) and LZMA2 (high ratio) on all platforms
π Getting Started
# Rust
cargo add [email protected]
# JavaScript/TypeScript
pnpm install [email protected]
For documentation and examples, please refer to the README.md file.
What's Changed
- Fixed platform-specific compilation issues
- Optimized memory usage for mobile environments
- Created new iOS implementation with PLzmaSDK integration
- Added complete Android implementation with LZMA2 support
- Added memory-efficient buffer processing for mobile platforms
- Ensured consistent behavior across desktop and mobile platforms
- Implemented automatic compression method fallback for large data sets
Full Changelog: v0.1.4...v0.1.5