This reduces repetitive array hits on the Redis or other cache as they
are stored in the php layer. The Redis hits are not slow - but the
serializing & unserializing is so this is a performance improvement
}
/**
+ * Get the cache object.
+ *
* @return CRM_Utils_Cache_Interface
+ * @throws \CRM_Core_Exception
*/
public function getCache() {
if ($this->cache === NULL) {
'name' => $cacheGroup,
'type' => ['*memory*', 'SqlGroup', 'ArrayCache'],
'prefetch' => TRUE,
+ 'withArray' => 'fast',
]);
}
return $this->cache;