I'm using session cache and trying to set the TTL (lifetime) to 60 minutes. However it is expiring much more quickly (it appears to be using the default 5 minute expiry). The docs say TTLs is seconds not milliseconds. Do I need to override the default TTLs at the partition or platform level as well?
private void putTokenInCache(String token) {
if (token != null) {
Cache.Session.put('token', token, 3600);
}
}
16:50:34:249 FATAL_ERROR cache.Org.OrgCacheException: Failed Cache.Session.put() for key 'token': Session Cache TTL, 360000, above maximum allowed: 28800 secs