- java.lang.Object
-
- org.redkale.service.AbstractService
-
- org.redkale.source.AbstractCacheSource
-
- org.redkale.source.CacheMemorySource
-
- 所有已实现的接口:
AutoCloseable
,Resourcable
,Service
,CacheSource
@Local @AutoLoad(false) @ResourceType(CacheSource.class) public final class CacheMemorySource extends AbstractCacheSource
CacheSource的默认实现--内存缓存 注意: url 需要指定为 memory:cachesource详情见: https://redkale.org
- 作者:
- zhangjx
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
CacheMemorySource.CacheEntry
static class
CacheMemorySource.CacheEntryType
static class
CacheMemorySource.RateLimitEntry
-
构造器概要
构造器 构造器 说明 CacheMemorySource(String resourceName)
-
方法概要
-
从类继承的方法 org.redkale.source.AbstractCacheSource
createCacheSource, createCacheSource
-
从类继承的方法 org.redkale.service.AbstractService
getExecutor, runAsync, serviceName, serviceType
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 org.redkale.source.CacheSource
appendListItem, appendListItemAsync, appendLongListItem, appendLongListItemAsync, appendLongSetItem, appendLongSetItemAsync, appendSetItem, appendSetItemAsync, appendStringListItem, appendStringListItemAsync, appendStringSetItem, appendStringSetItemAsync, decr, existsLongSetItem, existsLongSetItemAsync, existsSetItem, existsSetItemAsync, existsStringSetItem, existsStringSetItemAsync, getAndRefresh, getAndRefreshAsync, getDelLong, getDelLong, getDelLongAsync, getDelLongAsync, getDelString, getDelStringAsync, getexLong, getexLong, getexLongAsync, getexLongAsync, getexString, getexStringAsync, getKeySize, getKeySizeAsync, getLong, getLong, getLongAndRefresh, getLongAndRefreshAsync, getLongAsync, getLongAsync, getSet, getSetAsync, getSetLong, getSetLong, getSetLongAsync, getSetLongAsync, getSetString, getSetStringAsync, getString, getStringAndRefresh, getStringAndRefreshAsync, getStringAsync, hgetallLong, hgetallLongAsync, hgetallString, hgetallStringAsync, hgetLong, hgetLong, hgetLongAsync, hgetLongAsync, hgetString, hgetStringAsync, hmap, hmap, hmapAsync, hmapAsync, hmgetLong, hmgetLongAsync, hmgetString, hmgetStringAsync, hremove, hremoveAsync, hscan, hscanAsync, hset, hsetAsync, hsetLong, hsetLongAsync, hsetnx, hsetnxAsync, hsetnxLong, hsetnxLongAsync, hsetnxString, hsetnxStringAsync, hsetString, hsetStringAsync, hsize, hsizeAsync, hvalsLong, hvalsLongAsync, hvalsString, hvalsStringAsync, incr, isOpen, keys, keysAsync, lindexLong, lindexLongAsync, lindexString, lindexStringAsync, linsertAfterLong, linsertAfterLongAsync, linsertAfterString, linsertAfterStringAsync, linsertBeforeLong, linsertBeforeLongAsync, linsertBeforeString, linsertBeforeStringAsync, lock, lockAsync, lpopLong, lpopLongAsync, lpopString, lpopStringAsync, lpushLong, lpushLongAsync, lpushString, lpushStringAsync, lpushxLong, lpushxLongAsync, lpushxString, lpushxStringAsync, lrange, lrangeAsync, lrangeLong, lrangeLong, lrangeLongAsync, lrangeLongAsync, lrangesLong, lrangesLongAsync, lrangesString, lrangesStringAsync, lrangeString, lrangeString, lrangeStringAsync, lrangeStringAsync, lremLong, lremLongAsync, lremString, lremStringAsync, mgetLong, mgetLongAsync, mgets, mgetsAsync, mgetsLong, mgetsLongAsync, mgetsString, mgetsStringAsync, mgetString, mgetStringAsync, psetex, psetexAsync, psetexLong, psetexLongAsync, psetexString, psetexStringAsync, publish, publish, publish, publish, publish, publishAsync, publishAsync, publishAsync, publishAsync, pubsubChannels, queryKeys, queryKeysAsync, queryKeysEndsWith, queryKeysEndsWithAsync, queryKeysStartsWith, queryKeysStartsWithAsync, rateLimit, rateLimitAsync, refresh, refreshAsync, remove, removeAsync, removeListItem, removeListItemAsync, removeLongListItem, removeLongListItemAsync, removeLongSetItem, removeLongSetItemAsync, removeSetItem, removeSetItemAsync, removeStringListItem, removeStringListItemAsync, removeStringSetItem, removeStringSetItemAsync, rpopLong, rpopLongAsync, rpoplpushLong, rpoplpushLongAsync, rpoplpushString, rpoplpushStringAsync, rpopString, rpopStringAsync, rpushLong, rpushLongAsync, rpushString, rpushStringAsync, rpushxLong, rpushxLongAsync, rpushxString, rpushxStringAsync, saddLong, saddLongAsync, saddString, saddStringAsync, scan, scanAsync, sdiffLong, sdiffLongAsync, sdiffString, sdiffStringAsync, set, set, set, set, setAsync, setAsync, setAsync, setAsync, setex, setexAsync, setexLong, setexLongAsync, setExpireSeconds, setExpireSecondsAsync, setexString, setexStringAsync, setLong, setLong, setLongAsync, setnx, setnxAsync, setnxex, setnxexAsync, setnxexLong, setnxexLongAsync, setnxexString, setnxexStringAsync, setnxLong, setnxLongAsync, setnxpx, setnxpxAsync, setnxpxLong, setnxpxLongAsync, setnxpxString, setnxpxStringAsync, setnxString, setnxStringAsync, setString, setString, setStringAsync, sinterLong, sinterLongAsync, sinterString, sinterStringAsync, sismemberLong, sismemberLongAsync, sismemberString, sismemberStringAsync, smembersLong, smembersLong, smembersLongAsync, smembersLongAsync, smembersString, smembersString, smembersStringAsync, smembersStringAsync, smismember, smoveLong, smoveLongAsync, smoveString, smoveStringAsync, spopLong, spopLong, spopLongAsync, spopLongAsync, spopLongSetItem, spopLongSetItem, spopLongSetItemAsync, spopLongSetItemAsync, spopSetItem, spopSetItem, spopSetItemAsync, spopSetItemAsync, spopString, spopString, spopStringAsync, spopStringAsync, spopStringSetItem, spopStringSetItem, spopStringSetItemAsync, spopStringSetItemAsync, srandmember, srandmemberAsync, srandmemberLong, srandmemberLong, srandmemberLongAsync, srandmemberLongAsync, srandmemberString, srandmemberString, srandmemberStringAsync, srandmemberStringAsync, sremLong, sremLongAsync, sremString, sremStringAsync, sscan, sscanAsync, sscanLong, sscanLong, sscanLongAsync, sscanLongAsync, sscanString, sscanString, sscanStringAsync, sscanStringAsync, subscribe, subscribe, subscribe, subscribeAsync, subscribeAsync, sunionLong, sunionLongAsync, sunionString, sunionStringAsync, unlock, unlockAsync, unsubscribe, zadd, zadd, zadd, zaddAsync, zaddAsync, zaddAsync, zincrby, zincrby, zincrby, zincrbyAsync, zincrbyAsync, zincrbyAsync, zmscoreDouble, zmscoreDoubleAsync, zmscoreInteger, zmscoreIntegerAsync, zmscoreLong, zmscoreLongAsync, zscan, zscanAsync, zscanDouble, zscanDouble, zscanDoubleAsync, zscanDoubleAsync, zscanInteger, zscanInteger, zscanIntegerAsync, zscanIntegerAsync, zscanLong, zscanLong, zscanLongAsync, zscanLongAsync, zscoreDouble, zscoreDoubleAsync, zscoreInteger, zscoreIntegerAsync, zscoreLong, zscoreLongAsync
-
-
-
-
构造器详细资料
-
CacheMemorySource
public CacheMemorySource(String resourceName)
-
-
方法详细资料
-
getType
public final String getType()
-
onResourceChange
@ResourceChanged public void onResourceChange(ResourceEvent[] events)
- 指定者:
onResourceChange
在类中AbstractCacheSource
-
subExecutor
protected ExecutorService subExecutor()
-
acceptsConf
public static boolean acceptsConf(AnyValue config)
-
init
public void init(AnyValue conf)
从接口复制的说明:Service
该方法必须是可以重复调用, 当reload时需要重复调用init方法 远程模式下该方法会重载成空方法- 参数:
conf
- 配置参数
-
resourceName
public String resourceName()
-
destroy
public void destroy(AnyValue conf)
从接口复制的说明:Service
进程退出时,调用Service销毁 远程模式下该方法会重载成空方法 注意: 在此方法内不能调用MessageClient.sendMessage 方法,因为Application关闭时会先destroy掉MessageClient- 参数:
conf
- 配置参数
-
supplyFuture
protected <U> CompletableFuture<U> supplyFuture(Supplier<U> supplier)
-
runFuture
protected CompletableFuture<Void> runFuture(Runnable runner)
-
supplyAsync
protected <U> CompletableFuture<U> supplyAsync(Supplier<U> supplier)
-
supplyAsync
protected <U> CompletableFuture<U> supplyAsync(Supplier<U> supplier, Executor executor)
-
runAsync
protected CompletableFuture<Void> runAsync(Runnable runner, Executor executor)
-
isOpenAsync
public CompletableFuture<Boolean> isOpenAsync()
-
pubsubChannelsAsync
public CompletableFuture<List<String>> pubsubChannelsAsync(@Nullable String pattern)
-
subscribeAsync
public CompletableFuture<Void> subscribeAsync(CacheEventListener<byte[]> listener, String... topics)
-
unsubscribeAsync
public CompletableFuture<Integer> unsubscribeAsync(CacheEventListener listener, String... topics)
-
publishAsync
public CompletableFuture<Integer> publishAsync(String topic, byte[] message)
-
mset
public void mset(Serializable... keyVals)
-
mset
public void mset(Map map)
-
msetAsync
public CompletableFuture<Void> msetAsync(Serializable... keyVals)
-
msetnxAsync
public CompletableFuture<Boolean> msetnxAsync(Serializable... keyVals)
-
msetAsync
public CompletableFuture<Void> msetAsync(Map map)
-
msetnxAsync
public CompletableFuture<Boolean> msetnxAsync(Map map)
-
setAsync
public <T> CompletableFuture<Void> setAsync(String key, Convert convert, Type type, T value)
-
setnxAsync
public <T> CompletableFuture<Boolean> setnxAsync(String key, Convert convert, Type type, T value)
-
setnxex
public <T> boolean setnxex(String key, int expireSeconds, Convert convert, Type type, T value)
-
setnxpx
public <T> boolean setnxpx(String key, long milliSeconds, Convert convert, Type type, T value)
-
setnxexAsync
public <T> CompletableFuture<Boolean> setnxexAsync(String key, int expireSeconds, Convert convert, Type type, T value)
-
setnxpxAsync
public <T> CompletableFuture<Boolean> setnxpxAsync(String key, long milliSeconds, Convert convert, Type type, T value)
-
getSetAsync
public <T> CompletableFuture<T> getSetAsync(String key, Convert convert, Type type, T value)
-
getDelAsync
public <T> CompletableFuture<T> getDelAsync(String key, Type type)
-
msetnx
public boolean msetnx(Serializable... keyVals)
-
msetnx
public boolean msetnx(Map map)
-
setexAsync
public <T> CompletableFuture<Void> setexAsync(String key, int expireSeconds, Convert convert, Type type, T value)
-
psetexAsync
public <T> CompletableFuture<Void> psetexAsync(String key, long milliSeconds, Convert convert, Type type, T value)
-
expire
public void expire(String key, int expireSeconds)
-
pexpire
public void pexpire(String key, long milliSeconds)
-
expireAsync
public CompletableFuture<Void> expireAsync(String key, int expireSeconds)
-
pexpireAsync
public CompletableFuture<Void> pexpireAsync(String key, long milliSeconds)
-
ttl
public long ttl(String key)
-
pttl
public long pttl(String key)
-
ttlAsync
public CompletableFuture<Long> ttlAsync(String key)
-
pttlAsync
public CompletableFuture<Long> pttlAsync(String key)
-
expireAt
public void expireAt(String key, long secondsTime)
-
pexpireAt
public void pexpireAt(String key, long milliTime)
-
pexpireAtAsync
public CompletableFuture<Void> pexpireAtAsync(String key, long milliTime)
-
expireAtAsync
public CompletableFuture<Void> expireAtAsync(String key, long secondsTime)
-
expireTime
public long expireTime(String key)
-
pexpireTime
public long pexpireTime(String key)
-
expireTimeAsync
public CompletableFuture<Long> expireTimeAsync(String key)
-
pexpireTimeAsync
public CompletableFuture<Long> pexpireTimeAsync(String key)
-
persist
public boolean persist(String key)
-
persistAsync
public CompletableFuture<Boolean> persistAsync(String key)
-
renameAsync
public CompletableFuture<Boolean> renameAsync(String oldKey, String newKey)
-
renamenxAsync
public CompletableFuture<Boolean> renamenxAsync(String oldKey, String newKey)
-
del
public long del(String... keys)
-
delAsync
public CompletableFuture<Long> delAsync(String... keys)
-
delexAsync
public CompletableFuture<Long> delexAsync(String key, String expectedValue)
-
rateLimit
public long rateLimit(String key, long rate, long capacity, long requested)
令牌桶算法限流, 返回负数表示无令牌, 其他为有令牌每秒限制请求1次: rate:1, capacity:1, requested:1 每秒限制请求10次: rate:10, capacity:10, requested:1 每分钟限制请求1次: rate:1, capacity:60, requested:60 每分钟限制请求10次: rate:1, capacity:60, requested:6 每小时限制请求1次: rate:1, capacity:3600, requested:3600 每小时限制请求10次: rate:1, capacity:3600, requested:360
- 参数:
key
- 限流的键rate
- 令牌桶每秒填充平均速率capacity
- 令牌桶总容量requested
- 需要的令牌数- 返回:
- 可用令牌数
-
rateLimitAsync
public CompletableFuture<Long> rateLimitAsync(String key, long rate, long capacity, long requested)
从接口复制的说明:CacheSource
令牌桶算法限流, 返回负数表示无令牌, 其他为有令牌每秒限制请求1次: rate:1, capacity:1, requested:1 每秒限制请求10次: rate:10, capacity:10, requested:1 每分钟限制请求1次: rate:1, capacity:60, requested:60 每分钟限制请求10次: rate:1, capacity:60, requested:6 每小时限制请求1次: rate:1, capacity:3600, requested:3600 每小时限制请求10次: rate:1, capacity:3600, requested:360
- 参数:
key
- 限流的键rate
- 令牌桶每秒填充平均速率capacity
- 令牌桶总容量requested
- 需要的令牌数- 返回:
- 可用令牌数
-
incr
public long incr(String key)
-
incrAsync
public CompletableFuture<Long> incrAsync(String key)
-
incrby
public long incrby(String key, long num)
-
incrbyAsync
public CompletableFuture<Long> incrbyAsync(String key, long num)
-
incrbyFloat
public double incrbyFloat(String key, double num)
-
incrbyFloatAsync
public CompletableFuture<Double> incrbyFloatAsync(String key, double num)
-
decr
public long decr(String key)
-
decrAsync
public CompletableFuture<Long> decrAsync(String key)
-
decrby
public long decrby(String key, long num)
-
decrbyAsync
public CompletableFuture<Long> decrbyAsync(String key, long num)
-
mgetAsync
public <T> CompletableFuture<List<T>> mgetAsync(Type componentType, String... keys)
-
exists
public boolean exists(String key)
-
existsAsync
public CompletableFuture<Boolean> existsAsync(String key)
-
getAsync
public <T> CompletableFuture<T> getAsync(String key, Type type)
-
getexAsync
public <T> CompletableFuture<T> getexAsync(String key, int expireSeconds, Type type)
从接口复制的说明:CacheSource
获取key的值并可选择设置其过期时间- 类型参数:
T
- 泛型- 参数:
key
- 键expireSeconds
- 过期秒数type
- key值的类型- 返回:
- key的值
-
hdelAsync
public CompletableFuture<Long> hdelAsync(String key, String... fields)
-
hkeysAsync
public CompletableFuture<List<String>> hkeysAsync(String key)
-
hlen
public long hlen(String key)
-
hlenAsync
public CompletableFuture<Long> hlenAsync(String key)
-
hincrAsync
public CompletableFuture<Long> hincrAsync(String key, String field)
-
hincrbyAsync
public CompletableFuture<Long> hincrbyAsync(String key, String field, long num)
-
hincrbyFloatAsync
public CompletableFuture<Double> hincrbyFloatAsync(String key, String field, double num)
-
hdecrAsync
public CompletableFuture<Long> hdecrAsync(String key, String field)
-
hdecrbyAsync
public CompletableFuture<Long> hdecrbyAsync(String key, String field, long num)
-
hexistsAsync
public CompletableFuture<Boolean> hexistsAsync(String key, String field)
-
hsetAsync
public <T> CompletableFuture<Void> hsetAsync(String key, String field, Convert convert, Type type, T value)
-
hsetnxAsync
public <T> CompletableFuture<Boolean> hsetnxAsync(String key, String field, Convert convert, Type type, T value)
-
hmset
public void hmset(String key, Serializable... values)
-
hmsetAsync
public CompletableFuture<Void> hmsetAsync(String key, Serializable... values)
-
hmsetAsync
public CompletableFuture<Void> hmsetAsync(String key, Map map)
-
hmgetAsync
public <T> CompletableFuture<List<T>> hmgetAsync(String key, Type type, String... fields)
-
hgetallAsync
public <T> CompletableFuture<Map<String,T>> hgetallAsync(String key, Type type)
-
hvalsAsync
public <T> CompletableFuture<List<T>> hvalsAsync(String key, Type type)
-
hscan
public <T> Map<String,T> hscan(String key, Type type, AtomicLong cursor, int limit, String pattern)
-
hscanAsync
public <T> CompletableFuture<Map<String,T>> hscanAsync(String key, Type type, AtomicLong cursor, int limit, String pattern)
-
hgetAsync
public <T> CompletableFuture<T> hgetAsync(String key, String field, Type type)
-
hstrlenAsync
public CompletableFuture<Long> hstrlenAsync(String key, String field)
-
lrangeAsync
public <T> CompletableFuture<List<T>> lrangeAsync(String key, Type componentType, int start, int stop)
-
lrangesAsync
public <T> CompletableFuture<Map<String,List<T>>> lrangesAsync(Type componentType, String... keys)
-
llen
public long llen(String key)
-
llenAsync
public CompletableFuture<Long> llenAsync(String key)
-
lindexAsync
public <T> CompletableFuture<T> lindexAsync(String key, Type componentType, int index)
-
linsertBeforeAsync
public <T> CompletableFuture<Long> linsertBeforeAsync(String key, Type componentType, T pivot, T value)
-
linsertAfterAsync
public <T> CompletableFuture<Long> linsertAfterAsync(String key, Type componentType, T pivot, T value)
-
linsert
protected <T> long linsert(String key, Type componentType, boolean before, T pivot, T value)
-
lpushAsync
public <T> CompletableFuture<Void> lpushAsync(String key, Type componentType, T... values)
-
lpushxAsync
public <T> CompletableFuture<Void> lpushxAsync(String key, Type componentType, T... values)
-
lpopAsync
public <T> CompletableFuture<T> lpopAsync(String key, Type componentType)
-
ltrim
public void ltrim(String key, int start, int stop)
-
ltrimAsync
public CompletableFuture<Void> ltrimAsync(String key, int start, int stop)
-
rpoplpushAsync
public <T> CompletableFuture<T> rpoplpushAsync(String key, String key2, Type componentType)
-
rpopAsync
public <T> CompletableFuture<T> rpopAsync(String key, Type componentType)
-
rpushxAsync
public <T> CompletableFuture<Void> rpushxAsync(String key, Type componentType, T... values)
-
rpushAsync
public <T> CompletableFuture<Void> rpushAsync(String key, Type componentType, T... values)
-
lremAsync
public <T> CompletableFuture<Long> lremAsync(String key, Type componentType, T value)
-
srandmemberAsync
public <T> CompletableFuture<List<T>> srandmemberAsync(String key, Type componentType, int count)
-
smoveAsync
public <T> CompletableFuture<Boolean> smoveAsync(String key, String key2, Type componentType, T member)
-
sdiffAsync
public <T> CompletableFuture<Set<T>> sdiffAsync(String key, Type componentType, String... key2s)
-
sdiffstoreAsync
public CompletableFuture<Long> sdiffstoreAsync(String key, String srcKey, String... srcKey2s)
-
sinterAsync
public <T> CompletableFuture<Set<T>> sinterAsync(String key, Type componentType, String... key2s)
-
sinterstoreAsync
public CompletableFuture<Long> sinterstoreAsync(String key, String srcKey, String... srcKey2s)
-
sunionAsync
public <T> CompletableFuture<Set<T>> sunionAsync(String key, Type componentType, String... key2s)
-
sunionstoreAsync
public CompletableFuture<Long> sunionstoreAsync(String key, String srcKey, String... srcKey2s)
-
smembersAsync
public <T> CompletableFuture<Set<T>> smembersAsync(String key, Type componentType)
-
smembersAsync
public <T> CompletableFuture<Map<String,Set<T>>> smembersAsync(Type componentType, String... keys)
-
smismembersAsync
public CompletableFuture<List<Boolean>> smismembersAsync(String key, String... members)
-
saddAsync
public <T> CompletableFuture<Void> saddAsync(String key, Type componentType, T... values)
-
scard
public long scard(String key)
-
scardAsync
public CompletableFuture<Long> scardAsync(String key)
-
sismemberAsync
public <T> CompletableFuture<Boolean> sismemberAsync(String key, Type type, T value)
-
spopAsync
public <T> CompletableFuture<T> spopAsync(String key, Type componentType)
-
spopAsync
public <T> CompletableFuture<Set<T>> spopAsync(String key, int count, Type componentType)
-
sscan
public <T> Set<T> sscan(String key, Type componentType, AtomicLong cursor, int limit, String pattern)
-
sscanAsync
public <T> CompletableFuture<Set<T>> sscanAsync(String key, Type componentType, AtomicLong cursor, int limit, String pattern)
-
sremAsync
public <T> CompletableFuture<Long> sremAsync(String key, Type type, T... values)
-
zadd
public void zadd(String key, CacheScoredValue... values)
-
zaddAsync
public CompletableFuture<Void> zaddAsync(String key, CacheScoredValue... values)
-
zincrby
public <T extends Number> T zincrby(String key, CacheScoredValue value)
-
zincrbyAsync
public <T extends Number> CompletableFuture<T> zincrbyAsync(String key, CacheScoredValue value)
-
zcard
public long zcard(String key)
-
zcardAsync
public CompletableFuture<Long> zcardAsync(String key)
-
zrankAsync
public CompletableFuture<Long> zrankAsync(String key, String member)
-
zrevrankAsync
public CompletableFuture<Long> zrevrankAsync(String key, String member)
-
zrangeAsync
public CompletableFuture<List<String>> zrangeAsync(String key, int start, int stop)
-
zscan
public List<CacheScoredValue> zscan(String key, Type scoreType, AtomicLong cursor, int limit, String pattern)
-
zscanAsync
public CompletableFuture<List<CacheScoredValue>> zscanAsync(String key, Type scoreType, AtomicLong cursor, int limit, String pattern)
-
zremAsync
public CompletableFuture<Long> zremAsync(String key, String... members)
-
zmscore
public <T extends Number> List<T> zmscore(String key, Class<T> scoreType, String... members)
-
zmscoreAsync
public <T extends Number> CompletableFuture<List<T>> zmscoreAsync(String key, Class<T> scoreType, String... members)
-
zscoreAsync
public <T extends Number> CompletableFuture<T> zscoreAsync(String key, Class<T> scoreType, String member)
-
dbsize
public long dbsize()
-
dbsizeAsync
public CompletableFuture<Long> dbsizeAsync()
-
flushdb
public void flushdb()
-
flushdbAsync
public CompletableFuture<Void> flushdbAsync()
-
flushall
public void flushall()
-
flushallAsync
public CompletableFuture<Void> flushallAsync()
-
keysAsync
public CompletableFuture<List<String>> keysAsync(String pattern)
-
scan
public List<String> scan(AtomicLong cursor, int limit, String pattern)
-
scanAsync
public CompletableFuture<List<String>> scanAsync(AtomicLong cursor, int limit, String pattern)
-
keysStartsWithAsync
public CompletableFuture<List<String>> keysStartsWithAsync(String startsWith)
-
find
protected CacheMemorySource.CacheEntry find(String key)
-
find
protected CacheMemorySource.CacheEntry find(String key, CacheMemorySource.CacheEntryType cacheType)
-
getexLongCollection
@Deprecated(since="2.8.0") public Collection<Long> getexLongCollection(String key, int expireSeconds)
已过时。
-
getexCollectionAsync
@Deprecated(since="2.8.0") public <T> CompletableFuture<Collection<T>> getexCollectionAsync(String key, int expireSeconds, Type componentType)
已过时。
-
getexStringCollectionAsync
@Deprecated(since="2.8.0") public CompletableFuture<Collection<String>> getexStringCollectionAsync(String key, int expireSeconds)
已过时。
-
getexLongCollectionAsync
@Deprecated(since="2.8.0") public CompletableFuture<Collection<Long>> getexLongCollectionAsync(String key, int expireSeconds)
已过时。
-
getCollectionMapAsync
@Deprecated(since="2.8.0") public <T> CompletableFuture<Map<String,Collection<T>>> getCollectionMapAsync(boolean set, Type componentType, String... keys)
已过时。
-
getStringCollectionAsync
@Deprecated(since="2.8.0") public CompletableFuture<Collection<String>> getStringCollectionAsync(String key)
已过时。
-
getStringCollectionMapAsync
@Deprecated(since="2.8.0") public CompletableFuture<Map<String,Collection<String>>> getStringCollectionMapAsync(boolean set, String... keys)
已过时。
-
getLongCollectionAsync
@Deprecated(since="2.8.0") public CompletableFuture<Collection<Long>> getLongCollectionAsync(String key)
已过时。
-
getLongCollectionMapAsync
@Deprecated(since="2.8.0") public CompletableFuture<Map<String,Collection<Long>>> getLongCollectionMapAsync(boolean set, String... keys)
已过时。
-
getCollectionAsync
@Deprecated(since="2.8.0") public <T> CompletableFuture<Collection<T>> getCollectionAsync(String key, Type componentType)
已过时。
-
getCollection
@Deprecated(since="2.8.0") public <T> Collection<T> getCollection(String key, Type componentType)
已过时。
-
getCollectionMap
@Deprecated(since="2.8.0") public <T> Map<String,Collection<T>> getCollectionMap(boolean set, Type componentType, String... keys)
已过时。
-
getStringCollection
@Deprecated(since="2.8.0") public Collection<String> getStringCollection(String key)
已过时。
-
getStringCollectionMap
@Deprecated(since="2.8.0") public Map<String,Collection<String>> getStringCollectionMap(boolean set, String... keys)
已过时。
-
getLongArray
@Deprecated(since="2.8.0") public Long[] getLongArray(String... keys)
已过时。
-
getLongMapAsync
@Deprecated(since="2.8.0") public CompletableFuture<Map<String,Long>> getLongMapAsync(String... keys)
已过时。
-
getLongArrayAsync
@Deprecated(since="2.8.0") public CompletableFuture<Long[]> getLongArrayAsync(String... keys)
已过时。
-
getStringMap
@Deprecated(since="2.8.0") public Map<String,String> getStringMap(String... keys)
已过时。
-
getStringArray
@Deprecated(since="2.8.0") public String[] getStringArray(String... keys)
已过时。
-
getStringMapAsync
@Deprecated(since="2.8.0") public CompletableFuture<Map<String,String>> getStringMapAsync(String... keys)
已过时。
-
getStringArrayAsync
@Deprecated(since="2.8.0") public CompletableFuture<String[]> getStringArrayAsync(String... keys)
已过时。
-
getMap
@Deprecated(since="2.8.0") public <T> Map<String,T> getMap(Type componentType, String... keys)
已过时。
-
getMapAsync
@Deprecated(since="2.8.0") public <T> CompletableFuture<Map<String,T>> getMapAsync(Type componentType, String... keys)
已过时。
-
getLongCollection
@Deprecated(since="2.8.0") public Collection<Long> getLongCollection(String key)
已过时。
-
getLongCollectionMap
@Deprecated(since="2.8.0") public Map<String,Collection<Long>> getLongCollectionMap(boolean set, String... keys)
已过时。
-
getCollectionSize
@Deprecated(since="2.8.0") public int getCollectionSize(String key)
已过时。
-
getCollectionSizeAsync
@Deprecated(since="2.8.0") public CompletableFuture<Integer> getCollectionSizeAsync(String key)
已过时。
-
getexCollection
@Deprecated(since="2.8.0") public <T> Collection<T> getexCollection(String key, int expireSeconds, Type componentType)
已过时。
-
getexStringCollection
@Deprecated(since="2.8.0") public Collection<String> getexStringCollection(String key, int expireSeconds)
已过时。
-
-