I previously blogged about the Pivotal Cloud Cache service in Pivotal Cloud Foundry as follows
During that post I promised it will follow with a Spring Boot application which would use the PCC service to show what the code would look like. That demo exists at the GitHub URL below.
The GitHub URL above shows how you can clone , package and then push this application to PCF using your own PCC service instance using the "Spring Cloud GemFire Connector"
Pivotal Cloud Cache Docs