cache_manager_plus 1.1.0
cache_manager_plus: ^1.1.0 copied to clipboard
A Dart package for managing cache with support for multiple storage backends.
import 'package:cache_manager_plus/cache_manager_plus.dart';
void main() async {
await CacheManager.init(store: InMemoryCacheStore());
CacheManager.instance.set(CacheItem.ephemeral(key: 'k', data: 'Hello world'));
print((await CacheManager.instance.get('k'))?.data);
}