FLUTTER ECOSYSTEM

json_cache

An object-oriented package for caching user data locally in json; a combinable layer on top of local storage packages that unifies them.

Latest version
4.0.0
30-day downloads
1K
Likes
38
Pub points
140

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

json_cache is a Dart package that provides an object-oriented approach to locally caching user data in JSON format. Built as a flexible layer on top of existing local storage solutions, it unifies their interfaces for consistent use across platforms. The package simplifies data persistence by handling serialization and deserialization automatically, making it easy to store and retrieve complex objects. Designed for simplicity and interoperability, it supports Android, iOS, macOS, Windows, and Linux, enabling seamless cross-platform data caching with minimal boilerplate.

Use cases
  • Caching user preferences
  • Storing app state between sessions
  • Persisting form data temporarily
  • Saving API response data locally
  • Enabling offline functionality
Key features
  • Object-oriented JSON caching
  • Unified interface for multiple storage backends
  • Automatic serialization/deserialization
  • Cross-platform support
  • Minimal setup and configuration
Suitable for
  • Developers needing simple local data persistence
  • Apps requiring offline data access
  • Projects using multiple storage solutions
  • Teams seeking consistent caching behavior
  • Prototyping or small-scale applications
Considerations
  • Not suitable for large datasets
  • Relies on underlying storage packages
  • No built-in encryption
  • Limited to JSON format
  • Manual cache invalidation required
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add json_cache

Categories

Dependencies

Dependency list 6 items

Source repository

Related projects

No data available yet.