cache_manager_lite library
A high-performance, user-friendly, and secure cache manager for Flutter.
This library provides a comprehensive caching solution with support for:
- Multiple user skill levels (Beginner to Expert)
- Flexible expiration management
- Optional AES encryption
- Real-time monitoring
- Multi-platform support
Quick Start
import 'package:cache_manager_lite/cache_manager_lite.dart';
// Create a cache manager
final cacheManager = CacheManagerLite.forBeginner();
// Store data
await cacheManager.putForHours(
key: 'user_profile',
value: userProfile,
hours: 1,
);
// Retrieve data
final profile = await cacheManager.get('user_profile');
Classes
- CacheConfig
- Configuration for the cache manager. การกำหนดค่าของตัวจัดการแคช
- CacheEntry
- CacheEntry - รายการแคชหลักที่เก็บข้อมูลครบถ้วน
- CacheEntryInfo
- Information about a cache entry including expiration details. ข้อมูลเกี่ยวกับรายการแคชรวมถึงรายละเอียดการหมดอายุ
- CacheManagerLite
- CacheManagerLite - ตัวจัดการแคชที่ทรงพลังและใช้งานง่าย
- CachePolicy
- CachePolicy - นโยบายการจัดการแคชที่ยืดหยุ่นและทรงพลัง
- ScalableCacheConfig
- Extended cache configuration with app-scale support. การกำหนดค่าแคชขยายพร้อมการรองรับขนาดแอป
Enums
- AppType
- Application type presets for common app categories. ประเภทแอปพลิเคชันสำหรับหมวดหมู่แอปทั่วไป
- CacheSize
- Cache size presets for different application scales. ชุดการกำหนดขนาดแคชสำหรับแอปพลิเคชันขนาดต่างๆ
- PerformanceLevel
- Performance level presets for different performance requirements. ระดับประสิทธิภาพสำหรับความต้องการด้านประสิทธิภาพที่แตกต่างกัน
- UserLevel
- User skill level for appropriate cache configuration complexity. ระดับทักษะผู้ใช้สำหรับความซับซ้อนการกำหนดค่าแคชที่เหมาะสม