Interface ExpirationAfterWritePolicy
- All Known Implementing Classes:
ConstantExpirationAfterWritePolicy
public interface ExpirationAfterWritePolicy
Interface that defines a TTL policy for a Redis cache.
-
Method Summary
-
Method Details
-
getExpirationAfterWrite
- Parameters:
value
- Object that will be put in the cache (non-serialized)- Returns:
- TTL of the document in Redis in milliseconds
-