类 RedisCacheCreator
java.lang.Object
org.babyfish.jimmer.sql.cache.redis.spring.RedisCacheCreator
- 所有已实现的接口:
CacheCreator
-
字段概要
从接口继承的字段 org.babyfish.jimmer.sql.cache.CacheCreator
DEFAULT_LOCAL_CACHE_MAX_SIZE, DEFAULT_LOCAL_DURATION, DEFAULT_REMOTE_DURATION, DEFAULT_REMOTE_DURATION_RANDOM_PERCENT -
构造器概要
构造器构造器说明RedisCacheCreator(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) RedisCacheCreator(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
方法概要
修饰符和类型方法说明<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) @NotNull CacheCreatorwithLocalCache(int maxSize, Duration duration) @NotNull CacheCreatorwithLock(@Nullable CacheLocker locker, @Nullable Duration waitDuration, @Nullable Duration leaseDuration) @NotNull CacheCreatorwithRemoteDuration(@Nullable Duration duration, int randomPercent) @NotNull CacheCreatorwithTracking(@Nullable CacheTracker tracker) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.babyfish.jimmer.sql.cache.CacheCreator
withHardLock, withLocalCache, withLocalCache, withoutLocalCache, withoutLock, withoutTracking, withRemoteDuration, withSoftLock
-
构造器详细资料
-
RedisCacheCreator
public RedisCacheCreator(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory) -
RedisCacheCreator
public RedisCacheCreator(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
方法详细资料
-
withRemoteDuration
@NotNull public @NotNull CacheCreator withRemoteDuration(@Nullable @Nullable Duration duration, int randomPercent) - 指定者:
withRemoteDuration在接口中CacheCreator
-
withLocalCache
- 指定者:
withLocalCache在接口中CacheCreator
-
withLock
@NotNull public @NotNull CacheCreator withLock(@Nullable @Nullable CacheLocker locker, @Nullable @Nullable Duration waitDuration, @Nullable @Nullable Duration leaseDuration) - 指定者:
withLock在接口中CacheCreator
-
withTracking
- 指定者:
withTracking在接口中CacheCreator
-
createForObject
- 指定者:
createForObject在接口中CacheCreator
-
createForProp
public <K,V> Cache<K,V> createForProp(org.babyfish.jimmer.meta.ImmutableProp prop, boolean multiView) - 指定者:
createForProp在接口中CacheCreator
-