• 1Installation
  • 2Preliminary Knowledge
  • 3Cache Management
  • 4Config Service
  • 5Config Handlers
  • 6Read Configuration
  • 7Write Configuration
  • 8Integrations

Config.apex

  • Docs
  • Tutorials
Getting started with Config.apex

Cache Management

Once you have set up a cache partition, you can use CacheStore to easily access your cache.

CacheStore store = new CacheStore('Your Partition');
store.OrgCache.put('key', 'value');
String value = (String)store.get('key');

Internally CacheStore will bundle single cache requests into a big cache request to improve the cache efficiency. If the cache bundle is too big for one request, CacheStore will split it into smaller bundles. Care is taken and you worry no more about the details of managing Salesforce Platform Cache.

Done