Skip to content

dturanski/SpringBootPccDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Pivotal Cloud Cache Demo

The following demo shows how to use Pivotal Cloud Cache from a Spring Boot application. This also can run standalone against a local Gemfire cluster.

Steps

Create a Pivotal Cloud Cache service instance named cloudcache.

$ cf create-service p-cloudcache extra-small cloudcache

Connect to your PCC service using gfsh as described here and create the employee region.

gfsh>create region --name=employee --type=REPLICATE

Build the App

$ cd SpringBootPCCDemo
$ mvn package

Push to Pivotal Cloud Foundry

$ cf push

Create some data

$curl -X POST -H'Content-type: application/json' <app-base-url>/employees -d'{"id":1,"firstName":"First","lastName":"Last"}'

Get the data

$curl <app-base-url>/employees/1

Run a Query

$curl <app-base-url>/employees?q="firstName='First'"

About

Demo App for working with Pivotal Cloud Cache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages