, {$ttl}) failed" ); } } /** * Fetch a single item from Zend Data SHM Cache * * @param string $internalKey * @return mixed The stored value or NULL if item wasn't found * @throws Exception\RuntimeException */ protected function zdcFetch($internalKey) { return zend_shm_cache_fetch((string) $internalKey); } /** * Fetch multiple items from Zend Data SHM Cache * * @param array $internalKeys * @return array All found items * @throws Exception\RuntimeException */ protected function zdcFetchMulti(array $internalKeys) { $items = zend_shm_cache_fetch($internalKeys); if ($items === false) { throw new Exception\RuntimeException("zend_shm_cache_fetch() failed"); } return $items; } /** * Delete data from Zend Data SHM Cache * * @param string $internalKey * @return bool * @throws Exception\RuntimeException */ protected function zdcDelete($internalKey) { return zend_shm_cache_delete($internalKey); } }