CachePlugin.memory constructor
CachePlugin.memory({
- Duration maxStale = const Duration(days: 7),
- CachePolicy policy = CachePolicy.request,
使用内存缓存的便捷构造
Implementation
factory CachePlugin.memory({
Duration maxStale = const Duration(days: 7),
CachePolicy policy = CachePolicy.request,
}) {
return CachePlugin(
options: CacheOptions(
store: MemCacheStore(),
maxStale: maxStale,
policy: policy,
),
);
}