Class InMemoryK1Cache

  • All Implemented Interfaces:
    org.tbk.lnurl.auth.K1Cache

    public final class InMemoryK1Cache
    extends java.lang.Object
    implements org.tbk.lnurl.auth.K1Cache
    • Field Summary

      Fields 
      Modifier and Type Field Description
      com.google.common.cache.Cache<org.tbk.lnurl.auth.K1,​org.tbk.lnurl.auth.K1> cache  
    • Constructor Summary

      Constructors 
      Constructor Description
      InMemoryK1Cache()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isPresent​(org.tbk.lnurl.auth.K1 k1)  
      void put​(org.tbk.lnurl.auth.K1 k1)  
      void remove​(org.tbk.lnurl.auth.K1 k1)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cache

        public final com.google.common.cache.Cache<org.tbk.lnurl.auth.K1,​org.tbk.lnurl.auth.K1> cache
    • Constructor Detail

      • InMemoryK1Cache

        public InMemoryK1Cache()
    • Method Detail

      • put

        public void put​(org.tbk.lnurl.auth.K1 k1)
        Specified by:
        put in interface org.tbk.lnurl.auth.K1Cache
      • isPresent

        public boolean isPresent​(org.tbk.lnurl.auth.K1 k1)
        Specified by:
        isPresent in interface org.tbk.lnurl.auth.K1Cache
      • remove

        public void remove​(org.tbk.lnurl.auth.K1 k1)
        Specified by:
        remove in interface org.tbk.lnurl.auth.K1Cache