Annotation Interface Cacheable


An annotation that can be applied at the type or method level to indicate that the return value of the method should be cached for the configured value().
  • 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:
      {}