Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@daschl
daschl / gist:11252782
Last active June 2, 2016 14:32
Official Couchbase Java SDK Preview - Document Loading
// Load 3 Documents and process them one after another
// Java 8:
Observable
.from("doc1", "doc2", "doc3")
.flatMap(id -> bucket.get(id))
.subscribe(doc -> System.out.println(doc));
// Java 6 & 7
Observable
@darylteo
darylteo / javadoc.gradle
Last active December 1, 2016 14:53
Add external sources to javadoc.
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile group: 'net.spy', name:'spymemcached', version: '2.10.3'
}