Пример #1
0
 /**
  * Get cache adapter backend
  *
  * @return BackendInterface
  */
 protected function getCacheAdapterBackend()
 {
     /* @var Config $cacheConfig */
     $cacheConfig = $this->config->cache->backend;
     $frontendAdapter = $this->getCacheAdapterFrontend();
     return $this->backendFactory->getAdapter($cacheConfig->adapter, $frontendAdapter, $cacheConfig->toArray());
 }
Пример #2
0
 /**
  * @expectedException \Exception
  * @expectedExceptionMessage Class "Phalcon\Cache\Backend\Fake" is not exists
  */
 public function testGetAdapterFake()
 {
     $this->testable->getAdapter('Fake', $this->frontendAdapter, $this->getCacheOptions());
 }