Save the last fetch/execution time in a persistent file

I want develop an oraclebeat on basis on metricbeat. In some metricsets I get records from a table which I don't want receive twice if the beat is planned or unplanned restartet.

Yes, you are right I need something like a disk cache. At the moment I use the simple library diskv for my use case. My first draft is already provided on github.com.

@ruflin Thanks for providing the link.