Class LruWindowTinyLfuPolicy

  • All Implemented Interfaces:
    Policy, Policy.KeyOnlyPolicy

    public final class LruWindowTinyLfuPolicy
    extends Object
    implements Policy.KeyOnlyPolicy
    The Window TinyLfu algorithm where the window and main spaces implement LRU. This simpler version comes at the cost of not capturing recency as effectively as Segmented LRU does.
    • Constructor Detail

      • LruWindowTinyLfuPolicy

        public LruWindowTinyLfuPolicy​(double percentMain,
                                      com.github.benmanes.caffeine.cache.simulator.policy.sketch.segment.LruWindowTinyLfuPolicy.LruWindowTinyLfuSettings settings)
    • Method Detail

      • policies

        public static Set<Policy> policies​(Config config)
        Returns all variations of this policy based on the configuration parameters.
      • stats

        public PolicyStats stats()
        Description copied from interface: Policy
        Returns the cache efficiency statistics.
        Specified by:
        stats in interface Policy
      • finished

        public void finished()
        Description copied from interface: Policy
        Indicates that the recording has completed.
        Specified by:
        finished in interface Policy