Something like a Map<String, Object> I can use to store data in jquery?
<p>I have some JSON objects I'd like to store in a map for the lifetime of my app. For example, my app shows a listing of Farms. When a user clicks one of the Farm links, I download a Farm representation as JSON:</p>

<pre><code>Farm 1
Farm 2
...
Farm N
</code></pre>

<p>every time the user clicks one of those links, I download the entire Farm object. Instead, I'd like to somehow make a global map of Farms, keyed by their ID. Then when the user clicks one of the above links, I can see if it's already in my map cache and just skip going to the server.</p>

<p>Is there some general map type like this that I could use in jquery?</p>

<p>Thanks</p>
