A maintained fork of the stash caching
and storage abstraction for Dart and Flutter.
stash is an excellent key-value store abstraction with plain and cache-driven
semantics, but its packages have not been published since 2024-04 and pin older
constraints (e.g. flutter_secure_storage ^9) that block dependency upgrades in
downstream apps. restash is a drop-in fork that tracks upstream and relaxes
those constraints so it can be used with current Flutter SDKs.
| Package | Description |
|---|---|
restash |
Core key-value store abstraction (cache + vault semantics). |
restash_memory |
In-memory storage backend. |
restash_objectbox |
ObjectBox persistent storage backend. |
restash_secure_storage |
flutter_secure_storage-backed store (uses flutter_secure_storage 10). |
restash_test |
Shared conformance test harness for backends. |
restash is API-compatible with stash 5.2.0. Migrating is a package-name swap:
// before
import 'package:stash/stash_api.dart';
import 'package:stash_secure_storage/stash_secure_storage.dart';
// after
import 'package:restash/restash_api.dart';
import 'package:restash_secure_storage/restash_secure_storage.dart';Changes from upstream 5.2.0:
restash_secure_storage:flutter_secure_storage ^9→^10.- Cross-package constraints re-pinned to the
restashfamily at^1.0.0.
This is a pub workspace managed with Melos.
flutter pub get # resolves the whole workspace
melos run analyze
melos run testOriginally authored by Ivo Leitão as the stash family of packages. restash
preserves the original MIT license and copyright; see LICENSE.