diff --git a/lib/core/cache/memory_store.dart b/lib/core/cache/memory_store.dart index 0e4a4db7..33f39bc2 100644 --- a/lib/core/cache/memory_store.dart +++ b/lib/core/cache/memory_store.dart @@ -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,