bond_cache 0.0.3+1 copy "bond_cache: ^0.0.3+1" to clipboard
bond_cache: ^0.0.3+1 copied to clipboard

Cache is a Bond package provides a convenient way to handle caching in app.

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.

Pub Version License: MIT

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.

Read Full Documentation Here

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.

1
likes
150
pub points
51%
popularity

Publisher

unverified uploader

Cache is a Bond package provides a convenient way to handle caching in app.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

bond_core, flutter, meta, shared_preferences

More

Packages that depend on bond_cache