Annotation Type CacheGroup


@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @interface CacheGroup
Annotation for defining cache group in case different cache types are targeted.
Since:
4.0
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines key type of the cache.
    Defines value type of the cache.
  • Element Details

    • value

      String value
      Returns:
      cache group name
    • keyType

      Class<?> keyType
      Defines key type of the cache. Could be used for managing external caches that is strictly typed (e.g. JCache).
      Default:
      java.lang.Void.class
    • valueType

      Class<?> valueType
      Defines value type of the cache. Could be used for managing external caches that is strictly typed (e.g. JCache).
      Default:
      java.lang.Void.class