fix(cache): support stash_memory 4.0.0 typings

This commit is contained in:
Jagandeep Brar
2022-01-24 17:31:24 -05:00
parent 303b778653
commit 63572f18b0

View File

@@ -3,7 +3,7 @@ import 'package:lunasea/core.dart';
class LunaMemoryStore {
LunaMemoryStore._();
static final MemoryStore _store = newMemoryStore();
static final MemoryCacheStore _store = newMemoryCacheStore();
/// Returns a cache with the given ID.
static Cache get({
@@ -18,7 +18,7 @@ class LunaMemoryStore {
}) {
if (fresh) delete(id!);
return _store.cache(
cacheName: id,
name: id,
sampler: sampler,
evictionPolicy: evictionPolicy,
maxEntries: maxEntries,