FLUTTER ECOSYSTEM

stash_dio

Dio extension for the stash API. Provides an interceptor that uses stash as a caching layer for Dio

Latest version
5.2.0
30-day downloads
282
Likes
7
Pub points
150

Package Overview

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

Overview

Stash Dio is a Flutter/Dart package that extends the Dio HTTP client with caching capabilities using Stash, a persistent NoSQL database. It provides an interceptor that automatically caches HTTP responses based on request parameters, reducing redundant network calls and improving app performance. Ideal for applications requiring offline support or faster data retrieval, it seamlessly integrates with existing Dio-based networking code. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases
  • Caching API responses for offline access
  • Reducing redundant network requests
  • Improving app performance with local storage
  • Building offline-first applications
  • Enhancing user experience with faster load times
Key features
  • Dio interceptor for automatic caching
  • Persistent storage via Stash NoSQL database
  • Supports cache expiration and eviction
  • Cross-platform compatibility
  • Simple integration with existing Dio clients
Suitable for
  • Apps needing offline functionality
  • Network-heavy applications
  • Developers using Dio for HTTP requests
  • Projects prioritizing performance optimization
  • Teams building scalable mobile and web apps
Considerations
  • Requires understanding of Dio and Stash
  • Cache management must be handled carefully
  • May increase app size due to local storage
  • Not suitable for highly sensitive data without encryption
  • Initial setup requires configuration of Stash database
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add stash_dio

Categories

Dependencies

Dependency list 5 items

Source repository

Related projects

No data available yet.