LruPlugin constructor
LruPlugin({
- String metaKey = 'meta',
- String lastAccessedKey = 'last_accessed',
- String accessCountKey = 'access_count',
- List<
String> readEvents = const ['read', 'get'], - List<
String> writeEvents = const ['write', 'put'], - bool trackAccessCount = false,
- bool enableTouch = true,
- bool enableInit = true,
- int nowProvider()?,
Creates an LRU plugin with configurable options.
Implementation
LruPlugin({
this.metaKey = 'meta',
this.lastAccessedKey = 'last_accessed',
this.accessCountKey = 'access_count',
this.readEvents = const ['read', 'get'],
this.writeEvents = const ['write', 'put'],
this.trackAccessCount = false,
this.enableTouch = true,
this.enableInit = true,
this.nowProvider,
});