Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mineral-dart/cache
https://github.com/mineral-dart/cache
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mineral-dart/cache
- Owner: mineral-dart
- Created: 2024-03-10T17:09:58.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-09T07:12:55.000Z (4 months ago)
- Last Synced: 2024-11-04T09:41:21.258Z (about 2 months ago)
- Language: Dart
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Cache
The cache package provides a straightforward and effective solution for cache management in Mineral applications. By externalizing application consumption, it helps improve performance and optimize resources, thus offering a better user experience.![icons technologies](https://skillicons.dev/icons?i=discord,dart,redis, )
## Introduction
Caching plays a crucial role in many applications by offering a temporary and decoupled storage solution from the core of the project. It helps optimize performance by reducing response times and limiting calls to external resources such as databases or APIs.
## Features
- **In-Memory Cache** : Stores data directly in memory, providing fast response times for accessing data already loaded into the cache.
- **Redis Cache** : Utilizes Redis as a caching storage system, enabling distributed caching and persistence of data across application restarts.
InstallationTo use this package, simply add cache to your pubspec.yaml file:
```yaml
dependencies:
mineral_cache: ^1.0.0
```
Then, run `dart pub get` to download and install the package.## Usage
The cache can be used by importing the appropriate cache implementation, such as `memory provider` or `redis provider`. Detailed usage instructions can be found in the package documentation.