#Spring cloud connector for gemfire
This is an extension to the spring service connectors that provides a gemfire client cache as a managed spring bean once you bound a gemfire service to it.
The service expects a gemfire service with the following format:
{
"p-gemfire":[
{
"name":"gemfire1",
"label":"p-gemfire",
"tags":[
"gemfire",
"session_replication"
],
"plan":"PlanNameGoesHere",
"credentials":{
"locators":[
"10.0.0.57[55221]",
"10.0.0.58[55221]"
],
"username":"cd390983-01db-4dcf-75fd-79289d4fdbcd",
"password":"13917597139205230931"
}
}
]
}
Now you can consume the client cache just by using @ServiceScan annotation:
@Configuration
@ServiceScan
@EnableGemfireRepositories
@EnableAutoConfiguration
public class Application {
@Autowired
ClientCache gemfireCache;
}
Use spring-data-gemfire is optional
TODO - Need a better way to configure certain cache parameters.