public class InMemoryPersistenceScope extends Object implements PersistenceScope
| 构造器和说明 |
|---|
InMemoryPersistenceScope() |
| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<Map<String,Object>> |
all(String... key)
获取指定key的数据,如果没有指定key则返回全部数据
|
reactor.core.publisher.Mono<Void> |
clear()
清空作用域数据,不会清空Counter
|
ScopeCounter |
counter(String key)
获取一个计数器
|
reactor.core.publisher.Mono<Object> |
get(String key)
获取值
|
reactor.core.publisher.Mono<Void> |
put(String key,
Object value)
设置数据
|
reactor.core.publisher.Mono<Void> |
putAll(Map<String,Object> keyValue)
设置多个数据
|
reactor.core.publisher.Mono<Object> |
remove(String key)
删除值
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcounterpublic reactor.core.publisher.Mono<Void> put(String key, Object value)
PersistenceScopeput 在接口中 PersistenceScopekey - keyvalue - valuepublic reactor.core.publisher.Mono<Void> putAll(Map<String,Object> keyValue)
PersistenceScopeputAll 在接口中 PersistenceScopekeyValue - keyValuepublic reactor.core.publisher.Mono<Map<String,Object>> all(String... key)
PersistenceScopeall 在接口中 PersistenceScopekey - key arraypublic reactor.core.publisher.Mono<Object> get(String key)
PersistenceScopeget 在接口中 PersistenceScopekey - keypublic reactor.core.publisher.Mono<Object> remove(String key)
PersistenceScoperemove 在接口中 PersistenceScopekey - keypublic reactor.core.publisher.Mono<Void> clear()
PersistenceScopeclear 在接口中 PersistenceScopepublic ScopeCounter counter(String key)
PersistenceScopecounter 在接口中 PersistenceScopekey - keyCopyright © 2019–2021. All rights reserved.