Annotation Type CacheFromIndex


@Retention(RUNTIME) @Target(TYPE) @Documented public @interface CacheFromIndex
While extracting values from the index might be faster than extracting them from a Database, it might still involve costly IO operations. Depending on the type of performed queries, it's often needed to extract at least the entity type. Caches which aren't needed won't be used, but used caches might take a significant amount of memory.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      Returns:
      Returns a FieldCache enum type indicating what kind of caching we should use for index stored metadata. Defaults to FieldCache.CLASS.
      Default:
      {CLASS}