CacheMap.this

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

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

Parameters

replFunc ReplacementFunction

the replacement function

expirationTime Duration

the expiration deadline

sweepInterval Duration

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

Meta