Bond Cache
The bond_cache
package provides a robust and flexible solution to manage caching in Flutter applications. It
introduces several classes and utilities that simplify the process of storing, retrieving, and managing cached data.
This package is ideal for anyone looking to streamline their caching logic, whether it's for simple key-value pairs or complex custom objects.
Table of Contents
Features
- Easy to use API for caching
- Built-in support for various data types
- Customizable serialization and deserialization
- Cache drivers for different storage mechanisms
- Reactive state management: Can be extended to support reactive updates.
- Support for async operations: Methods like put, add, forever, forget, increment, decrement, pull, remember, and rememberForever are asynchronous.
- Easily extensible
Installation
To use bond_cache
, simply add it as a dependency in your pubspec.yaml
:
dependencies:
bond_cache: ^0.0.1
Usage
import 'package:bond_cache/bond_cache.dart';
// Example usage
final user = Cache.get<User>('user');
Cache.put<User>('user', User(id: 1, name: 'SÜẞ'));
Documentation
For a comprehensive guide on how to use bond_cache
, please refer to the full documentation available in the bond_docs
repository under the caching.md
file.
Contributing
Contributions are welcome! However, we currently do not have a set guideline for contributions. If you're interested in contributing, please feel free to open a pull request or issue, and we'll be happy to discuss and review your changes.
License
Bond Cache is licensed under the MIT License.