Cache.OrgPartition orgPart = Cache.Org.getPartition('local.CurrencyCache');
String cachedRate = (String)orgPart.get('DollarToEuroRate');
// Check the cache value that the get() call returned.
if (cachedRate != null) {
// Display this exchange rate
} else {
// We have a cache miss, so fetch the value from the source.
// Call an API to get the exchange rate.
}
Maggiori approfondimenti al link
Sempre allo stesso link troviamo informazioni anche sul recupero dati dalla cache in una pagina visualforce