Skip to content

Commit

Permalink
Update cache.md
Browse files Browse the repository at this point in the history
Add section on accessing cache stores other than the default
  • Loading branch information
tomcastleman committed Feb 27, 2015
1 parent a6942f6 commit da0e5b3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- [Configuration](#configuration)
- [Cache Usage](#cache-usage)
- [Accessing Stores](#accessing-stores)
- [Increments & Decrements](#increments-and-decrements)
- [Cache Tags](#cache-tags)
- [Database Cache](#database-cache)
Expand Down Expand Up @@ -81,6 +82,13 @@ If you need to retrieve an item from the cache and then delete it, you may use t

Cache::forget('key');

<a name="accessing-stores"></a>
## Accessing Stores

When using multiple stores, you may access them via the `Cache::store` method:

value = Cache::store('foo')->get(...);

<a name="increments-and-decrements"></a>
## Increments & Decrements

Expand Down Expand Up @@ -130,7 +138,7 @@ You may flush all items tagged with a name or list of names. For example, this s
In contrast, this statement would remove only caches tagged with `authors`, so "John" would be removed, but not "Anne".

Cache::tags('authors')->flush();

<a name="database-cache"></a>
## Database Cache

Expand Down

0 comments on commit da0e5b3

Please sign in to comment.