Memcache() public static method

Create a cache instance with Memcache as cache driver.
public static Memcache ( string $host = '127.0.0.1', integer $port = 11211, array $options = [] ) : CacheStorage
$host string Host where the memcached is running.
$port integer Port where memcached is running.
$options array Cache options.
return CacheStorage
Exemplo n.º 1
0
 public function driverSet()
 {
     Cache::setConfig(realpath(__DIR__ . '/' . self::CONFIG));
     return [[Cache::Memcache(self::MEMCACHE_IP)]];
 }