Update query-cache.markdown

Fix 'custom cache' example code.
Merge pull request #283 from thetreew/patch-4

Update query-cache.markdown