Constructor

Plugin

new Plugin(config)

Parameter

config

Object

Values in config have the following properties:

Parameter

maxEntries

Optional

number

The maximum number of entries to cache. Entries used the least will be removed as the maximum is reached.

maxAgeSeconds

Optional

number

The maximum age of an entry before it's treated as stale and removed.