---
schema_version: "1"
id: 18795b6e7cdf60b799a498cfcde8b23e2f4c34604652cb912158169d6cbad0a9
title: $Cache.Org
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/variables/pages-variables-global-cacheorg.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-variables-global-cacheorg.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2feabc591d1dae129a05fb6a8f2de5bace63a8e89a6bfbfe6acc2e52d54360ec
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# $Cache.Org

A global merge field to access an org cache from a Visualforce page. Retrieve cached values from a specified partition’s org cache in the referenced org.

## Usage

Use `{!$Cache.Org}` to reference an existing org cache. An org cache consists of data that’s shared across the org. Use dot notation to specify the namespace, partition name, or properties of a cached value.

## Examples

This output text component retrieves a cached value from the myPartition partition and myNamespace namespace with the key `output`.

```visualforce
<apex:outputText value="{!$Cache.Org.myNamespace.myPartition.output}"/>
```

If the cached value is a data structure that has properties or methods, like an Apex list or a custom class, you can access the properties with`$Cache.Org` by using dot notation. For example, this markup invokes the `List.size()` Apex method if the value of `numbersList` is declared as a `List`.

```visualforce
<apex:outputText value="{!$Cache.Org.myNamespace.myPartition.numbersList.size}"/>
```

If you’re using `CacheBuilder`, qualify the key name with the class that implements the `CacheBuilder` interface and the literal string `_B_`, in addition to the namespace and partition name. In this example, the class that implements `CacheBuilder` is called `CacheBuilderImpl`.

```visualforce
<apex:outputText value="{!$Cache.Org.myNamespace.myPartition.CacheBuilderImpl_B_key1}"/>
```

**See Also**  


-   [Cache.Org Class](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_cache_Org.htm#apex_class_cache_Org.htm)
-   [Cache.CacheBuilder Interface](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_interface_cache_CacheBuilder.htm#apex_interface_cache_CacheBuilder)

