Class Expirations<K>

java.lang.Object
org.springframework.data.redis.core.types.Expirations<K>

public class Expirations<K> extends Object
Value Object linking a number of keys to their Expirations.TimeToLive retaining the order of the original source. Dedicated higher level methods interpret raw expiration values retrieved from a Redis Client.
  1. persistent() returns keys that do not have an associated time to live
  2. missing() returns keys that do not exist and therefore have no associated time to live
  3. ttl() returns the ordered list of expirations based on the raw values
  4. expiring() returns the expiring keys along with their time to live
Since:
3.5
Author:
Christoph Strobl, Mark Paluch