注释类型 CacheUpdate


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface CacheUpdate
作者:
huangli
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    The name of this Cache instance which need a update operation.
    Specify the cache value by expression script.
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    If you want to use multi backend cache system, you can setup multi "cache area" in configuration, this attribute specifies the name of the "cache area" you want to use.
    Expression script used for conditioning the cache operation, the operation is vetoed when evaluation result is false.
    Specify the key by expression script, optional.
    boolean
    If both evaluated key and value are array or instance of java.lang.Iterable, set multi to true indicates jetcache to update K/V pair to cache instead of update single converted K/V.
  • 元素详细资料

    • name

      String name
      The name of this Cache instance which need a update operation.
      返回:
      the name of the cache which need a update operation
    • value

      String value
      Specify the cache value by expression script.
      返回:
      an expression script which specifies cache value
    • area

      String area
      If you want to use multi backend cache system, you can setup multi "cache area" in configuration, this attribute specifies the name of the "cache area" you want to use.
      返回:
      the name of cache area
      默认值:
      "default"
    • key

      String key
      Specify the key by expression script, optional. If not specified, use all parameters of the target method and keyConvertor to generate one.
      返回:
      an expression script which specifies key
      默认值:
      "$$undefined$$"
    • condition

      String condition
      Expression script used for conditioning the cache operation, the operation is vetoed when evaluation result is false. Evaluation occurs after real method invocation so we can refer #result in script.
      默认值:
      "$$undefined$$"
    • multi

      boolean multi
      If both evaluated key and value are array or instance of java.lang.Iterable, set multi to true indicates jetcache to update K/V pair to cache instead of update single converted K/V.
      默认值:
      false