# pcc-inline-caching-demo
This demo is used to show how inline cache pattern is used in Pivotal Cloud Cache and MongoDB.
gfsh> connect --use-http=true --url=<pcc-gfsh-url> --user=<username> --password=<password>
gfsh> deploy --jar=<caching-server-jar-path>
gfsh> configure pdx --auto-serializable-classes=.* --disk-store=DEFAULT
$ cf update-service <your-pcc-service-name> -c '{"restart": true}'
gfsh> create region --name=Transactions --type=PARTITION --async-event-queue-id=item-writebehind-queue
gfsh> create async-event-queue --listener=io.pivotal.event.writebehind.ItemAsyncEventListener --id=item-writebehind-queue --batch-size=10 --batch-time-interval="20" --parallel="false" --dispatcher-threads=1 --listener-param=mongoAddress#xx.xx.xx.xx,mongoPort#27017,dbName#test,collectionName#test
Follow DataLoader instructions to deploy the app. Note that you don't have to recreate Transactions
region.
Use DataLoader
app to start loading data. Check remote MongoDB server to see if data goes through.