How to set couchbase operation timeout in spring data couchbase?
问题 I have a simple spring project which try to retrieve a document from couchbase using spring-data-couchbase. I have configured the config by extending AbstractCouchbaseConfiguration. Everything works perfectly fine. Since I use couchbase as a cache, now I need to set the operation timeout to a lower value. Anybody can shed some light on how to do it? 回答1: To define a timeout for the CouchbaseClient you have to provide it using the ConnectionFactory. Sadly, the current version of spring-data