Interface ConsulResponse.CacheResponseInfo

Enclosing class:
ConsulResponse<T>

public static interface ConsulResponse.CacheResponseInfo
  • Method Summary

    Modifier and Type
    Method
    Description
    This value can be null if the value is not in cache
    boolean
     
  • Method Details

    • getAgeInSeconds

      Optional<Long> getAgeInSeconds()
      This value can be null if the value is not in cache
      Returns:
      an Optional containing the age in seconds, or an empty Optional
    • isCacheHit

      boolean isCacheHit()