Fix using long at the wrong location

mapConfig.setTimeToLiveSeconds expects int but cacheConfiguration.setTimeToLiveSeconds expects long
Merge pull request #395 from LeovR/patch-1

Fix using long at the wrong location