syncDataToCache
Fetch in memory events and push all the events to disk
Parameters
success
Lambda(Boolean) to invoke after successful write to disk
Fetch in memory events and push all the events to disk
Lambda(Boolean) to invoke after successful write to disk