mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
fix(cache): support stash_memory 4.0.0 typings
This commit is contained in:
4
lib/core/cache/memory_store.dart
vendored
4
lib/core/cache/memory_store.dart
vendored
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user