接口 CacheCreator
- 所有已知实现类:
AbstractCacheCreator,RedisCacheCreator
public interface CacheCreator
-
字段概要
字段 -
方法概要
修饰符和类型方法说明<K,V> Cache<K, V> createForObject(org.babyfish.jimmer.meta.ImmutableType type) <K,V> Cache<K, V> createForProp(org.babyfish.jimmer.meta.ImmutableProp prop, boolean multiView) default @NotNull CacheCreatorwithHardLock(@Nullable CacheLocker locker, @Nullable Duration leaseDuration) default @NotNull CacheCreatorwithLocalCache(int maxSize) @NotNull CacheCreatorwithLocalCache(int maxSize, @Nullable Duration duration) default @NotNull CacheCreatorwithLocalCache(Duration duration) @NotNull CacheCreatorwithLock(@Nullable CacheLocker locker, @Nullable Duration waitDuration, @Nullable Duration leaseDuration) default @NotNull CacheCreatorwithMultiViewProperties(@Nullable Integer localMaximumSize, @Nullable Duration localDuration) @NotNull CacheCreatorwithMultiViewProperties(@Nullable Integer localMaximumSize, @Nullable Duration localDuration, @Nullable Duration remoteDuration) default @NotNull CacheCreatordefault @NotNull CacheCreatordefault @NotNull CacheCreatordefault @NotNull CacheCreatorwithRemoteDuration(@Nullable Duration duration) @NotNull CacheCreatorwithRemoteDuration(@Nullable Duration duration, int randomPercent) default @NotNull CacheCreatorwithSoftLock(@Nullable CacheLocker locker, @Nullable Duration leaseDuration) @NotNull CacheCreatorwithTracking(@Nullable CacheTracker tracker)
-
字段详细资料
-
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
-
-
方法详细资料
-
withRemoteDuration
-
withRemoteDuration
@NotNull @NotNull CacheCreator withRemoteDuration(@Nullable @Nullable Duration duration, int randomPercent) -
withLocalCache
-
withLocalCache
-
withLocalCache
-
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
-
withTracking
-
withoutTracking
-
withMultiViewProperties
@NotNull default @NotNull CacheCreator withMultiViewProperties(@Nullable @Nullable Integer localMaximumSize, @Nullable @Nullable Duration localDuration) -
withMultiViewProperties
@NotNull @NotNull CacheCreator withMultiViewProperties(@Nullable @Nullable Integer localMaximumSize, @Nullable @Nullable Duration localDuration, @Nullable @Nullable Duration remoteDuration) -
createForObject
-
createForProp
-