laravel/framework — pull request #1394 by ipalaus (2013-05-24 14:45:32+00:00)
Title: Added DB::cache() method to the query builder to cache results

I've added a method to easily cache the results of a query:

```php
DB::table('users')->cache(30)->get();
```

You can also have a second optional parameter to the define the key of the cache so it can be deleted.

Thanks so much to @bencorlett for helping and pointing this in the right track!