<p><code>craft()-&gt;cache</code> can point to different places, depending on what the <a href="http://buildwithcraft.com/docs/config-settings#cacheMethod" rel="nofollow">cacheMethod</a> config setting is set to.</p>

<p>By default, it's set to <code>file</code>, which means that your cache will be saved to the file system in the <code>craft/runtime/storage/cache</code> folder.</p>

<p>So you can pretty much save as much there as you have disk space available.</p>

<p>Just keep in mind, if you're saving something that's 500MB worth of text, PHP is roughly going need 500MB worth of extra memory to be able to read and write that data.</p>

CC BY-SA 3.0
2014-10-15T16:14:18.860Z
Thank you Brad. Then I know what's going on. I thought it was stored in the DB - that's why I asked :)
naboovalley
CC BY-SA 3.0
2014-10-14T15:02:48.943Z
2014-10-14T15:02:48.943Z
Brad Bell
<p>How much data can I push into one craft()->cache key?</p>

<p>Let's say I have a json string that's reaaaallly long.</p>

<plugin-development><cache>
How much data can craft()->cache hold?
# How much data can craft()->cache hold?

(Asked by: username_0 on 2014-10-14)

How much data can I push into one craft()->cache key?

Let's say I have a json string that's reaaaallly long.

**Tags:** plugin-development, cache

---

## 1 answers

### Answer by username_1 on 2014-10-14. Score: 2 | Accepted answer

`craft()->cache` can point to different places, depending on what the [cacheMethod](http://buildwithcraft.com/docs/config-settings#cacheMethod) config setting is set to.

By default, it's set to `file`, which means that your cache will be saved to the file system in the `craft/runtime/storage/cache` folder.

So you can pretty much save as much there as you have disk space available.

Just keep in mind, if you're saving something that's 500MB worth of text, PHP is roughly going need 500MB worth of extra memory to be able to read and write that data.

> **Comments:**
> **username_0**: Thank you Brad. Then I know what's going on. I thought it was stored in the DB - that's why I asked :)  

---

