Annotation Interface CachePut


An annotation that can be applied at the type or method level to indicate that the annotated operation should cause the return value to be cached within the given cache name. Unlike Cacheable this annotation will never skip the original invocation.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Cache<?,?>>
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Limit the automatic CacheKeyMapper to the given parameter names.
  • Element Details

    • value

      Class<? extends Cache<?,?>> value
      Returns:
      cache name (correlate with name in configuration file)
    • parameters

      String[] parameters
      Limit the automatic CacheKeyMapper to the given parameter names. Mutually exclusive with
      Returns:
      The parameter names that make up the key.
      Default:
      {}