raykrueger/hibernate-memcached — comment on commit cd7ab28e026c62097a17a971763f97595fb4c9a5
File: src/main/java/com/googlecode/hibernate/memcached/spymemcached/SpyMemcache.java line 112
By burtbeckwith:

I guess if connectionFactory isn't specified then operationTimeout should be set to the default value that net.spy.memcached.DefaultConnectionFactory uses (2500ms):

if (connectionFactory == null) {
operationTimeout = DefaultConnectionFactory.DEFAULT_OPERATION_TIMEOUT;
}
else {
operationTimeout = connectionFactory.getOperationTimeout();
}
log.debug("Using operationTimeout {}ms", operationTimeout);

and then the check could be just

if (!asyncWrites) {