Example #1
0
 /**
  * Get the name of bridge library which will be used as the driver.
  *
  * @return string
  */
 public static function getLibrary()
 {
     return Cache::getConfig()->get('Bridges.Memcache', self::$library);
 }
Example #2
0
 public function testConfigServices()
 {
     $this->assertSame('\\Webiny\\Component\\Cache\\Cache', Cache::getConfig()->get('Services.TestCache.Factory'));
     $this->assertSame('\\Webiny\\Component\\Cache\\Bridge\\Memory\\Memcache', Cache::getConfig()->get('Bridges.Memcache'));
     $this->assertFalse(Cache::getConfig()->get('Bridges.FakeBridge', false));
 }