LruPlugin constructor

LruPlugin({
  1. String metaKey = 'meta',
  2. String lastAccessedKey = 'last_accessed',
  3. String accessCountKey = 'access_count',
  4. List<String> readEvents = const ['read', 'get'],
  5. List<String> writeEvents = const ['write', 'put'],
  6. bool trackAccessCount = false,
  7. bool enableTouch = true,
  8. bool enableInit = true,
  9. 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,
});