Skip to content

Instantly share code, notes, and snippets.

@pabloardilacode
Created September 15, 2013 20:31
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 pabloardilacode/6574121 to your computer and use it in GitHub Desktop.
Save pabloardilacode/6574121 to your computer and use it in GitHub Desktop.
Laravel 3 example of using remember caching method
return Cache::remember($this->id.'_pabloardilacodeCount', function(){
return PabloConns::where_requester_id($this->id)->where_verified(1)->count();
}, 60*12);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment