DATACOUCH-97: Expose the CouchbaseClient in the template.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package org.springframework.data.couchbase.core;
|
||||
|
||||
|
||||
import com.couchbase.client.CouchbaseClient;
|
||||
import com.couchbase.client.protocol.views.Query;
|
||||
import com.couchbase.client.protocol.views.ViewResponse;
|
||||
import net.spy.memcached.PersistTo;
|
||||
@@ -273,4 +274,11 @@ public interface CouchbaseOperations {
|
||||
*/
|
||||
CouchbaseConverter getConverter();
|
||||
|
||||
/**
|
||||
* Returns the linked {@link CouchbaseClient} to this template.
|
||||
*
|
||||
* @return the client used for the template.
|
||||
*/
|
||||
CouchbaseClient getCouchbaseClient();
|
||||
|
||||
}
|
||||
|
||||
@@ -486,4 +486,8 @@ public class CouchbaseTemplate implements CouchbaseOperations, ApplicationEventP
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CouchbaseClient getCouchbaseClient() {
|
||||
return client;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user