Interface ExpirationAfterWritePolicy

All Known Implementing Classes:
ConstantExpirationAfterWritePolicy

public interface ExpirationAfterWritePolicy
Interface that defines a TTL policy for a Redis cache.
  • Method Details

    • getExpirationAfterWrite

      long getExpirationAfterWrite(Object value)
      Parameters:
      value - Object that will be put in the cache (non-serialized)
      Returns:
      TTL of the document in Redis in milliseconds