-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
LRU stand for least-recently-used.
Actual:
import 'package:lru_cache/lru_cache.dart';
Future<void> main(List<String> args) async {
final cache = LruCache<String, int>(2);
cache.put('1', 1);
cache.put('2', 2);
await cache.get('1');
cache.put('3', 3);
print(cache.snapshot());
}Expected:
import 'package:lru_cache/lru_cache.dart';
void main(List<String> args) {
final cache = LruCache<String, int>(2);
cache['1'] = 1;
cache['2'] = 2;
cache['1'];
cache['3'] = 3;
print(cache);
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

