src/phpFastCache/Drivers/Apc/Driver.php 1 location
|
@@ 37-44 (lines=8) @@
|
| 34 |
|
* @param array $config |
| 35 |
|
* @throws phpFastCacheDriverException |
| 36 |
|
*/ |
| 37 |
|
public function __construct(array $config = []) |
| 38 |
|
{ |
| 39 |
|
$this->setup($config); |
| 40 |
|
|
| 41 |
|
if (!$this->driverCheck()) { |
| 42 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
/** |
| 47 |
|
* @return bool |
src/phpFastCache/Drivers/Apcu/Driver.php 1 location
|
@@ 37-44 (lines=8) @@
|
| 34 |
|
* @param array $config |
| 35 |
|
* @throws phpFastCacheDriverException |
| 36 |
|
*/ |
| 37 |
|
public function __construct(array $config = []) |
| 38 |
|
{ |
| 39 |
|
$this->setup($config); |
| 40 |
|
|
| 41 |
|
if (!$this->driverCheck()) { |
| 42 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
/** |
| 47 |
|
* @return bool |
src/phpFastCache/Drivers/Cookie/Driver.php 1 location
|
@@ 38-45 (lines=8) @@
|
| 35 |
|
* @param array $config |
| 36 |
|
* @throws phpFastCacheDriverException |
| 37 |
|
*/ |
| 38 |
|
public function __construct(array $config = []) |
| 39 |
|
{ |
| 40 |
|
$this->setup($config); |
| 41 |
|
|
| 42 |
|
if (!$this->driverCheck()) { |
| 43 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 44 |
|
} |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
/** |
| 48 |
|
* @return bool |
src/phpFastCache/Drivers/Couchbase/Driver.php 1 location
|
@@ 53-62 (lines=10) @@
|
| 50 |
|
* @param array $config |
| 51 |
|
* @throws phpFastCacheDriverException |
| 52 |
|
*/ |
| 53 |
|
public function __construct(array $config = []) |
| 54 |
|
{ |
| 55 |
|
$this->setup($config); |
| 56 |
|
|
| 57 |
|
if (!$this->driverCheck()) { |
| 58 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 59 |
|
} else { |
| 60 |
|
$this->driverConnect(); |
| 61 |
|
} |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
/** |
| 65 |
|
* @return bool |
src/phpFastCache/Drivers/Devfalse/Driver.php 1 location
|
@@ 37-44 (lines=8) @@
|
| 34 |
|
* @param array $config |
| 35 |
|
* @throws phpFastCacheDriverException |
| 36 |
|
*/ |
| 37 |
|
public function __construct(array $config = []) |
| 38 |
|
{ |
| 39 |
|
$this->setup($config); |
| 40 |
|
|
| 41 |
|
if (!$this->driverCheck()) { |
| 42 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
/** |
| 47 |
|
* @return bool |
src/phpFastCache/Drivers/Devnull/Driver.php 1 location
|
@@ 37-44 (lines=8) @@
|
| 34 |
|
* @param array $config |
| 35 |
|
* @throws phpFastCacheDriverException |
| 36 |
|
*/ |
| 37 |
|
public function __construct(array $config = []) |
| 38 |
|
{ |
| 39 |
|
$this->setup($config); |
| 40 |
|
|
| 41 |
|
if (!$this->driverCheck()) { |
| 42 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
/** |
| 47 |
|
* @return bool |
src/phpFastCache/Drivers/Devtrue/Driver.php 1 location
|
@@ 37-44 (lines=8) @@
|
| 34 |
|
* @param array $config |
| 35 |
|
* @throws phpFastCacheDriverException |
| 36 |
|
*/ |
| 37 |
|
public function __construct(array $config = []) |
| 38 |
|
{ |
| 39 |
|
$this->setup($config); |
| 40 |
|
|
| 41 |
|
if (!$this->driverCheck()) { |
| 42 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
/** |
| 47 |
|
* @return bool |
src/phpFastCache/Drivers/Files/Driver.php 1 location
|
@@ 44-51 (lines=8) @@
|
| 41 |
|
* @param array $config |
| 42 |
|
* @throws phpFastCacheDriverException |
| 43 |
|
*/ |
| 44 |
|
public function __construct(array $config = []) |
| 45 |
|
{ |
| 46 |
|
$this->setup($config); |
| 47 |
|
|
| 48 |
|
if (!$this->driverCheck()) { |
| 49 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
/** |
| 54 |
|
* @return bool |
src/phpFastCache/Drivers/Leveldb/Driver.php 1 location
|
@@ 47-56 (lines=10) @@
|
| 44 |
|
* @param array $config |
| 45 |
|
* @throws phpFastCacheDriverException |
| 46 |
|
*/ |
| 47 |
|
public function __construct(array $config = []) |
| 48 |
|
{ |
| 49 |
|
$this->setup($config); |
| 50 |
|
|
| 51 |
|
if (!$this->driverCheck()) { |
| 52 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 53 |
|
} else { |
| 54 |
|
$this->driverConnect(); |
| 55 |
|
} |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
/** |
| 59 |
|
* @return string |
src/phpFastCache/Drivers/Mongodb/Driver.php 1 location
|
@@ 49-58 (lines=10) @@
|
| 46 |
|
* @param array $config |
| 47 |
|
* @throws phpFastCacheDriverException |
| 48 |
|
*/ |
| 49 |
|
public function __construct(array $config = []) |
| 50 |
|
{ |
| 51 |
|
$this->setup($config); |
| 52 |
|
|
| 53 |
|
if (!$this->driverCheck()) { |
| 54 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 55 |
|
} else { |
| 56 |
|
$this->driverConnect(); |
| 57 |
|
} |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
/** |
| 61 |
|
* @return bool |
src/phpFastCache/Drivers/Predis/Driver.php 1 location
|
@@ 43-52 (lines=10) @@
|
| 40 |
|
* @param array $config |
| 41 |
|
* @throws phpFastCacheDriverException |
| 42 |
|
*/ |
| 43 |
|
public function __construct(array $config = []) |
| 44 |
|
{ |
| 45 |
|
$this->setup($config); |
| 46 |
|
|
| 47 |
|
if (!$this->driverCheck()) { |
| 48 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 49 |
|
} else { |
| 50 |
|
$this->driverConnect(); |
| 51 |
|
} |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
/** |
| 55 |
|
* @return bool |
src/phpFastCache/Drivers/Redis/Driver.php 1 location
|
@@ 38-47 (lines=10) @@
|
| 35 |
|
* @param array $config |
| 36 |
|
* @throws phpFastCacheDriverException |
| 37 |
|
*/ |
| 38 |
|
public function __construct(array $config = []) |
| 39 |
|
{ |
| 40 |
|
$this->setup($config); |
| 41 |
|
|
| 42 |
|
if (!$this->driverCheck()) { |
| 43 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 44 |
|
} else { |
| 45 |
|
$this->driverConnect(); |
| 46 |
|
} |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
/** |
| 50 |
|
* @return bool |
src/phpFastCache/Drivers/Wincache/Driver.php 1 location
|
@@ 37-44 (lines=8) @@
|
| 34 |
|
* @param array $config |
| 35 |
|
* @throws phpFastCacheDriverException |
| 36 |
|
*/ |
| 37 |
|
public function __construct(array $config = []) |
| 38 |
|
{ |
| 39 |
|
$this->setup($config); |
| 40 |
|
|
| 41 |
|
if (!$this->driverCheck()) { |
| 42 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
/** |
| 47 |
|
* @return bool |
src/phpFastCache/Drivers/Xcache/Driver.php 1 location
|
@@ 37-44 (lines=8) @@
|
| 34 |
|
* @param array $config |
| 35 |
|
* @throws phpFastCacheDriverException |
| 36 |
|
*/ |
| 37 |
|
public function __construct(array $config = []) |
| 38 |
|
{ |
| 39 |
|
$this->setup($config); |
| 40 |
|
|
| 41 |
|
if (!$this->driverCheck()) { |
| 42 |
|
throw new phpFastCacheDriverCheckException(sprintf(self::DRIVER_CHECK_FAILURE, $this->getDriverName())); |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
/** |
| 47 |
|
* @return bool |