lru_memory_cache 1.0.0
lru_memory_cache: ^1.0.0 copied to clipboard
LRUMemoryCache is a Dart library that provides a simple, in-memory, least recently used (LRU) caching mechanism with expiration support. It allows you to cache key-value pairs, automatically managing [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add lru_memory_cacheThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
lru_memory_cache: ^1.0.0Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:lru_memory_cache/lru_memory_cache.dart';