Interface RedisPersistentEntity<T>

Type Parameters:
T -
All Superinterfaces:
Iterable<RedisPersistentProperty>, KeyValuePersistentEntity<T,RedisPersistentProperty>, MutablePersistentEntity<T,RedisPersistentProperty>, PersistentEntity<T,RedisPersistentProperty>
All Known Implementing Classes:
BasicRedisPersistentEntity

public interface RedisPersistentEntity<T> extends KeyValuePersistentEntity<T,RedisPersistentProperty>
Redis specific PersistentEntity.
Since:
1.7
Author:
Christoph Strobl
  • Method Details

    • getTimeToLiveAccessor

      TimeToLiveAccessor getTimeToLiveAccessor()
      Get the TimeToLiveAccessor associated with the entity.
      Returns:
      never null.
    • hasExplictTimeToLiveProperty

      boolean hasExplictTimeToLiveProperty()
      Returns:
      true when a property is annotated with TimeToLive.
      Since:
      1.8
    • getExplicitTimeToLiveProperty

      @Nullable RedisPersistentProperty getExplicitTimeToLiveProperty()
      Get the PersistentProperty that is annotated with TimeToLive.
      Returns:
      can be null.
      Since:
      1.8
    • isExpiring

      default boolean isExpiring()
      Returns:
      true if the entity could potentially expire.
      Since:
      2.3