Annotation Type Cache


@Retention(RUNTIME) @Target(TYPE) public @interface Cache

Place this on any POJO entity class to cause it to be cached in the memcache.

Author:
Jeff Schnitzer <[email protected]>
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Number of seconds after which the cached copy should be expired; the default value (0) is "keep as long as possible".
  • Element Details

    • expirationSeconds

      int expirationSeconds
      Number of seconds after which the cached copy should be expired; the default value (0) is "keep as long as possible". This is not a guarantee; the memcache can be wiped at any time due to memory pressure or the whim of Google's operations team.
      Default:
      0