パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.0.4

flutter_auto_cache

暗号化、置換/無効化ポリシー、および効率的なサイズ処理を備えた自動キャッシュ管理。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
56
いいね数
61
Pub ポイント
150

パッケージをインストール

flutter pub add flutter_auto_cache

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutter Auto Cache は、組み込みの暗号化、知的な置換および無効化ポリシー、効率的なサイズ管理を備えた自動キャッシュ管理を提供します。データライフサイクルを自動的に管理することで永続ストレージを簡素化し、暗号化によりセキュリティを確保し、複数プラットフォームでスペース使用を最適化します。ユーザーまたはアプリケーションデータの信頼性、安全性、メンテナンスコストの低さを求めるアプリに最適です。このパッケージはすべての主要なFlutterプラットフォームをサポートしており、シンプルなAPIを通じてシームレスに統合できます。

用途

  • API レスポンスのキャッシュ
  • ユーザーの設定を安全に保存する
  • セッション間でアプリの状態を保持する
  • 大規模なデータセットを効率的に管理する
  • キャッシュされたデータを使用してネットワークリクエストを減らす
  • 機密なローカルデータの保護

主な機能

  • キャッシュされたデータの自動暗号化
  • カスタマイズ可能な除外および無効化ポリシー
  • 効率的なメモリおよびディスク領域の管理
  • クロスプラットフォーム互換性
  • 既存コードとの簡単な統合
  • 複雑なデータ型のサポート

適している対象

  • セキュアなローカルストレージを必要とするアプリ
  • 自動キャッシュ処理を求める開発者
  • 頻繁なデータ永続化が必要なプロジェクト
  • 複数のプラットフォームをターゲットにするアプリケーション
  • データセキュリティを最優先するチーム
  • メンテナンスが少ないキャッシュソリューション

注意事項

  • 最適なパフォーマンスを得るためには、慎重なポリシー設定が必要です
  • 初期設定の複雑さを増加させる可能性があります
  • 暗号化はわずかなオーバーヘッドを追加します
  • リアルタイムストリーミングデータには適していません
  • キー値ストレージモデルに限定
  • 下位のファイルシステムの信頼性に依存します

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

continuous integration start bsd-3-clause

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:

1. Clone the FlutterAutoCache repository:
git clone https://github.com/luizgasparetto/flutter_auto_cache.git
2. Navigate to your project's pubspec.yaml file and add the following dependency:
dependencies:
  flutter_auto_cache:
    path: ../path_to_flutter_auto_cache
3. Install the dependency by running:
flutter pub get

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 needed
  await AutoCacheInitializer.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:

await AutoCache.data.getString(key: "my_string_cached");

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.

カテゴリー

依存関係

依存関係一覧 5 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。