Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.