TtlPlugin constructor

TtlPlugin({
  1. String metaKey = 'meta',
  2. String createdAtKey = 'created_at',
  3. String ttlSecondsKey = 'ttl_seconds',
  4. List<String> readEvents = const ['read'],
  5. List<String> writeEvents = const ['write', 'put'],
  6. bool enableCleanup = true,
  7. bool enableStamp = true,
  8. int nowProvider()?,
})

Creates a TTL plugin with configurable options.

Implementation

TtlPlugin({
  this.metaKey = 'meta',
  this.createdAtKey = 'created_at',
  this.ttlSecondsKey = 'ttl_seconds',
  this.readEvents = const ['read'],
  this.writeEvents = const ['write', 'put'],
  this.enableCleanup = true,
  this.enableStamp = true,
  this.nowProvider,
});