Interface Cachable


public interface Cachable
API for items that can be cached.
Version:
1.0
Author:
matt.magoffin
  • Method Summary

    Modifier and Type
    Method
    Description
    Get a unique cache key that identifies this cachable item.
    Get a suggested time-to-idle, in seconds.
    Get a suggested time-to-live, in seconds.
  • Method Details

    • getCacheKey

      String getCacheKey()
      Get a unique cache key that identifies this cachable item.
      Returns:
      the cache key
    • getTtl

      Long getTtl()
      Get a suggested time-to-live, in seconds.
      Returns:
      TTL in seconds, or null if should use a default value
    • getTti

      Long getTti()
      Get a suggested time-to-idle, in seconds.
      Returns:
      TTI in seconds, or null if should use a default value