CacheMap.this

Constructs a new cache map with the given replacement delegate and the expiration deadline.

  1. this(ReplacementDelegate replFunc, Duration expirationTime, Duration sweepInterval)
    class CacheMap
    this
    (,
    Duration expirationTime = dur!("seconds")(10)
    ,
    Duration sweepInterval = dur!("seconds")(10)
    )
  2. this(ReplacementFunction replFunc, Duration expirationTime, Duration sweepInterval)

Parameters

replFunc ReplacementDelegate

the replacement delegate

expirationTime Duration

the expiration deadline

sweepInterval Duration

the interval at which the sweeper thread should run at to check for expired entries

Meta