Interface ICacheStrategy

  • All Known Implementing Classes:
    LongestExpireCacheStrategy

    public interface ICacheStrategy
    An interface to describes a cache strategy.
    • Method Detail

      • cacheJwt

        void cacheJwt​(Jwt.Key key,
                      Jwt jwt)
        caches a jwt to the cache pool with provided cache key and jwt.
        Parameters:
        key - Jwt.Key cache key
        jwt - Jwt
      • getCachedJwt

        Jwt getCachedJwt​(Jwt.Key key)
        get Jwt from cache pool with provided Jwt.Key cache key
        Parameters:
        key - Jwt.Key
        Returns:
        Jwt jwt