Annotation Interface CacheSettings


@Retention(RUNTIME) @Target(FIELD) public @interface CacheSettings
Cache settings
Since:
1.1.7
Author:
Logicommerce
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
    Duration of cache in seconds.
    Name of cache.
  • Element Details

    • name

      String name
      Name of cache. If it is not defined or empty, the name of cache will be the name of field.
      Returns:
      a String object
      Default:
      ""
    • duration

      long duration
      Duration of cache in seconds. If it is not defined or 0, the duration of cache will be 300 seconds.
      Returns:
      a long
      Default:
      300L