Interface ExpiringCacheable

All Superinterfaces:
Cacheable, Serializable
All Known Implementing Classes:
WeatherMapData

public interface ExpiringCacheable extends Cacheable
An interface to mark a cacheable object that sets its own expiration date.
Since:
1.0
Version:
7.0
Author:
Luke
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the date this object should be considered expired.

    Methods inherited from interface org.deltava.util.cache.Cacheable

    cacheKey
  • Method Details

    • getExpiryDate

      Instant getExpiryDate()
      Returns the date this object should be considered expired.
      Returns:
      the expiry date/time