接口 CacheCreator

所有已知实现类:
RedisCacheCreator

public interface CacheCreator
  • 字段详细资料

    • DEFAULT_REMOTE_DURATION

      static final Duration DEFAULT_REMOTE_DURATION
    • DEFAULT_REMOTE_DURATION_RANDOM_PERCENT

      static final int DEFAULT_REMOTE_DURATION_RANDOM_PERCENT
      另请参阅:
    • DEFAULT_LOCAL_CACHE_MAX_SIZE

      static final int DEFAULT_LOCAL_CACHE_MAX_SIZE
      另请参阅:
    • DEFAULT_LOCAL_DURATION

      static final Duration DEFAULT_LOCAL_DURATION
  • 方法详细资料

    • withRemoteDuration

      @NotNull default @NotNull CacheCreator withRemoteDuration(@Nullable @Nullable Duration duration)
    • withRemoteDuration

      @NotNull @NotNull CacheCreator withRemoteDuration(@Nullable @Nullable Duration duration, int randomPercent)
    • withLocalCache

      @NotNull default @NotNull CacheCreator withLocalCache(int maxSize)
    • withLocalCache

      @NotNull default @NotNull CacheCreator withLocalCache(Duration duration)
    • withLocalCache

      @NotNull @NotNull CacheCreator withLocalCache(int maxSize, @Nullable @Nullable Duration duration)
    • withoutLocalCache

      @NotNull default @NotNull CacheCreator withoutLocalCache()
    • withLock

      @NotNull @NotNull CacheCreator withLock(@Nullable @Nullable CacheLocker locker, @Nullable @Nullable Duration waitDuration, @Nullable @Nullable Duration leaseDuration)
    • withHardLock

      @NotNull default @NotNull CacheCreator withHardLock(@Nullable @Nullable CacheLocker locker, @Nullable @Nullable Duration leaseDuration)
    • withSoftLock

      @NotNull default @NotNull CacheCreator withSoftLock(@Nullable @Nullable CacheLocker locker, @Nullable @Nullable Duration leaseDuration)
    • withoutLock

      @NotNull default @NotNull CacheCreator withoutLock()
    • withTracking

      @NotNull @NotNull CacheCreator withTracking(@Nullable @Nullable CacheTracker tracker)
    • withoutTracking

      @NotNull default @NotNull CacheCreator withoutTracking()
    • createForObject

      <K, V> Cache<K,V> createForObject(org.babyfish.jimmer.meta.ImmutableType type)
    • createForProp

      <K, V> Cache<K,V> createForProp(org.babyfish.jimmer.meta.ImmutableProp prop, boolean multiView)