public final class MemoryCache
extends java.lang.Object
implements org.apache.shenyu.plugin.cache.ICache
| 构造器和说明 |
|---|
MemoryCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<java.lang.Boolean> |
cacheData(java.lang.String key,
byte[] bytes,
long timeoutSeconds)
Cache the data with the key.
|
void |
close()
close the cache.
|
reactor.core.publisher.Mono<byte[]> |
getData(java.lang.String key)
Get data with the key.
|
reactor.core.publisher.Mono<java.lang.Boolean> |
isExist(java.lang.String key)
Check the cache is exist or not.
|
public reactor.core.publisher.Mono<java.lang.Boolean> cacheData(java.lang.String key,
byte[] bytes,
long timeoutSeconds)
cacheData 在接口中 org.apache.shenyu.plugin.cache.ICachekey - the cache keybytes - the datatimeoutSeconds - the timeout secondspublic reactor.core.publisher.Mono<java.lang.Boolean> isExist(java.lang.String key)
isExist 在接口中 org.apache.shenyu.plugin.cache.ICachekey - the cache keypublic reactor.core.publisher.Mono<byte[]> getData(java.lang.String key)
getData 在接口中 org.apache.shenyu.plugin.cache.ICachekey - the cache keypublic void close()
close 在接口中 org.apache.shenyu.plugin.cache.ICacheCopyright © 2026 The Apache Software Foundation. All rights reserved.