Aus öffentlichen Paketdaten erstellte Orientierung.
Flutter Auto Cache bietet automatisches Caching-Management mit eingebauter Verschlüsselung, intelligenten Ersetzungs- und Gültigkeitsrichtlinien sowie effizienter Größenverwaltung. Es vereinfacht die dauerhafte Speicherung durch automatische Verwaltung des Datenlebenszyklus, gewährleistet Sicherheit durch Verschlüsselung und optimiert den Speicherverbrauch über alle Plattformen hinweg. Ideal für Apps, die zuverlässiges, sicheres und wartungsarmes Caching von Benutzer- oder App-Daten benötigen. Das Paket unterstützt alle wichtigen Flutter-Plattformen und integriert sich nahtlos über eine einfache API.
Anwendungsfälle
API-Antworten zwischenspeichern
Benutzerpräferenzen sicher speichern
Beibehaltung des App-Zustands über Sitzungen hinweg
Große Datensätze effizient verwalten
Verringern von Netzwerkanfragen mit zwischengespeicherten Daten
Sicherung sensibler lokaler Daten
Hauptmerkmale
Automatische Verschlüsselung von zwischengespeicherten Daten
Konfigurierbare Ausstoß- und Ungültigkeitsrichtlinien
Effiziente Speicherverwaltung und Festplattenspeicherplatzverwaltung
Plattformübergreifende Kompatibilität
Einfache Integration mit bestehendem Code
Unterstützung für komplexe Datentypen
Geeignet für
Apps, die sichere lokale Speicherung erfordern
Entwickler, die automatisierte Cache-Verwaltung suchen
Projekte mit häufigen Anforderungen an die Datenpersistenz
Anwendungen für mehrere Plattformen
Teams, die Daten-Sicherheit priorisieren
wartenungsarme Caching-Lösungen
Hinweise
Erfordert sorgfältige Richtlinienkonfiguration für optimale Leistung
Kann die anfängliche Einrichtungskomplexität erhöhen
Verschlüsselung fügt geringe Overhead hinzu
Nicht geeignet für Echtzeit-Streaming-Daten
Beschränkt auf das Schlüssel-Wert-Speichermodell
Abhängig von der Zuverlässigkeit des zugrundeliegenden Dateisystems
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
Introduction
Flutter Auto Cache is a sophisticated, high-tech cache manager for Flutter, designed to optimize cache management in mobile applications. Enhances cache replacement policies, provides robust encryption methods, and ensures efficient disk space management. Leveraging shared_preferences, our platform delivers a comprehensive solution for cache data management.
With Flutter Auto Cache, you can seamlessly integrate advanced cache management features, allowing you to focus on your application’s core functionality while we handle the complexities of data caching. Our user-friendly interface and powerful capabilities make Flutter Auto Cache the go-to choice for Flutter developers aiming to achieve high performance and security in their applications.
Experience unparalleled efficiency and reliability in cache management with Flutter Auto Cache.
Installation
Getting started with Flutter Auto Cache is straightforward and can be accomplished in a few simple steps. You have the flexibility to add it to your project directly from pub.dev or install it locally, depending on your development preferences and workflow.
Adding via pub.dev
To add Flutter Auto Cache to your project, run the following command:
flutter pub add flutter_auto_cache
Installing Locally
If you prefer to install Flutter Auto Cache locally, follow these steps:
Once installed, you can start using Flutter Auto Cache in your Flutter project to enhance your application's cache management with advanced features, including encryption and efficient disk space management.
Usage
To use Flutter Auto Cache, you need to initialize the cache manager before calling runApp. This ensures that all cache configurations are set up correctly. You also have the option to pass your custom initialization configuration.
import'package:flutter_auto_cache/flutter_auto_cache.dart';
Future<void> main() async {
/// Optional: Pass a custom CacheConfiguration if neededawaitAutoCacheInitializer.initialize(configuration: yourCustomConfiguration);
runApp(MyApp());
}
After initialization, you can use the cache management methods directly from the AutoCache class. Here is an example of how to access the preferences cache manager:
With this setup, you can easily manage your application's cache using the methods provided by AutoCache.
Note
Each property of the CacheConfiguration can have a different impact on how the cache behaves. It is important to understand these properties to optimize your application's performance and reliability.
Contributing
The majority of Flutter Auto Cache code is open-source. We are committed to a transparent development process and highly appreciate any contributions. Whether you are helping us fix bugs, proposing new features or improving our documentation.
Bug Report: If you see an error message or encounter an issue while using this package, please create a bug report.
Feature Request: If you have an idea or if there is a capability that is missing and would make development easier and more robust, please submit a feature request.
License
Flutter Auto Cache is licensed under the BSD-3-Clause. This license permits the redistribution and use of the software in source and binary forms, with or without modification, provided that the terms and conditions outlined in the license are met. By using Flutter Auto Cache, you agree to comply with these terms and conditions, which ensure the protection and proper use of the software.