TtlPlugin constructor
TtlPlugin({})
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,
});