Skip to content

Instantly share code, notes, and snippets.

@Teino1978-Corp
Created December 10, 2015 06:56
Show Gist options
  • Save Teino1978-Corp/aaf906b4f28c375eebb3 to your computer and use it in GitHub Desktop.
Save Teino1978-Corp/aaf906b4f28c375eebb3 to your computer and use it in GitHub Desktop.
@GrabResolver(name='asf-snapshots', root="https://repository.apache.org/content/repositories/snapshots")
@Grab(group="org.apache.geode", module = "gemfire-core", version = "1.0.0-incubating-SNAPSHOT")
import com.gemstone.gemfire.cache.client.ClientCacheFactory
import com.gemstone.gemfire.cache.client.ClientRegionShortcut
cache = new ClientCacheFactory()
.addPoolLocator("localhost", 10334)
.create();
region = cache.createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY).create("myRegion")
region.put("1","Hello")
region.put("2","World")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment