Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions phpfastcache/3.0.0/drivers/predis.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,22 @@ class phpfastcache_predis extends BasePhpFastCache implements phpfastcache_drive

function checkdriver() {
// Check memcache
if (! class_exists("\\Predis\\Client")) {
$this->required_extension("predis-1.0/autoload.php");
try {
Predis\Autoloader::register();
} catch(Exception $e) {

}
return true;
}
return true;
}

function __construct($config = array()) {
$this->setup($config);
if (! class_exists("\\Predis\\Client")) {
$this->required_extension("predis-1.0/autoload.php");



}
}

function connectServer() {
Expand Down Expand Up @@ -164,4 +165,4 @@ function driver_isExisting($keyword) {



}
}