Annotation Interface RedisHash


@Documented @Inherited @Retention(RUNTIME) @Target(TYPE) @KeySpace public @interface RedisHash
RedisHash marks Objects as aggregate roots to be stored in a Redis hash.
Since:
1.7
Author:
Christoph Strobl
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
    Time before expire in seconds.
    The prefix to distinguish between domain types.
  • Element Details

    • value

      @AliasFor(annotation=org.springframework.data.keyvalue.annotation.KeySpace.class, attribute="value") String value
      The prefix to distinguish between domain types.
      Returns:
      See Also:
      • KeySpace
      Default:
      ""
    • timeToLive

      long timeToLive
      Time before expire in seconds. Superseded by TimeToLive.
      Returns:
      positive number when expiration should be applied.
      Default:
      -1L