Class Cache<Input extends java.lang.Comparable<Input>,​Output>

java.lang.Object
kz.greetgo.security.session.cache.Cache<Input,​Output>

public class Cache<Input extends java.lang.Comparable<Input>,​Output>
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Cache​(java.util.function.LongSupplier refreshTimeoutSec, java.util.function.IntSupplier maxSize, java.util.function.Function<Input,​Output> loader, java.util.function.LongSupplier nowMillisSupplier)  
  • Method Summary

    Modifier and Type Method Description
    Output get​(Input input)  
    void invalidateAll()  
    int size()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Cache

      public Cache​(java.util.function.LongSupplier refreshTimeoutSec, java.util.function.IntSupplier maxSize, java.util.function.Function<Input,​Output> loader, java.util.function.LongSupplier nowMillisSupplier)
  • Method Details