Achieve atomic cache writes using file_put_contents to temp file, followed by rename.
Merge pull request #115 from michaelmoussa/atomic-cache-file-writing

Achieve atomic cache writes