@@ -191,4 +191,10 @@ public interface KeyValueOperations extends DisposableBean {
|
||||
* @return mapping context in use.
|
||||
*/
|
||||
MappingContext<?, ?> getMappingContext();
|
||||
|
||||
/**
|
||||
* @return {@link KeyValueAdapter} in use.
|
||||
* @since 3.2.4
|
||||
*/
|
||||
KeyValueAdapter getKeyValueAdapter();
|
||||
}
|
||||
|
||||
@@ -387,6 +387,11 @@ public class KeyValueTemplate implements KeyValueOperations, ApplicationEventPub
|
||||
return this.mappingContext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public KeyValueAdapter getKeyValueAdapter() {
|
||||
return adapter;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroy() throws Exception {
|
||||
this.adapter.clear();
|
||||
|
||||
Reference in New Issue
Block a user