Skip to content

Instantly share code, notes, and snippets.

@angelxmoreno
Last active March 31, 2017 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelxmoreno/dc67a2ba3f2ddaf501813583f7e5e19b to your computer and use it in GitHub Desktop.
Save angelxmoreno/dc67a2ba3f2ddaf501813583f7e5e19b to your computer and use it in GitHub Desktop.
<?php
public function longDbCall()
{
$cache_key = $this->cache->generateKey('longDbCall');
return $this->cache->remember($cache_key, function () {
return $this->__longDbCall();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment