/** * Provide data for PDO connection * * @param string $user * @param string $password * @param string $host * @param string $classname class name to create as PDO connection */ public function __construct($user, $password, $host, $classname = 'PDO') { parent::__construct(); $this->user = $user; $this->password = $password; $this->host = $host; $this->classname = $classname; }
public function __construct(StorageInterface $cache) { parent::__construct(); $this->cache = $cache; }
/** * @param $client Predis\Client */ public function __construct(Predis\Client $client) { parent::__construct(); $this->client = $client; }
/** * @param $client Redis */ public function __construct(Redis $client) { parent::__construct(); $this->client = $client; }
/** * @param \Redis $redis */ public function __construct(\Redis $redis) { parent::__construct(); $this->redis = $redis; $this->ttl = []; }
public function __destruct() { parent::__destruct(); foreach ($this->pdo as $name => $pdo) { unset($this->pdo[$name]); } }
/** * @param Memcache $memcache */ public function __construct(Memcache $memcache) { parent::__construct(); $this->memcache = $memcache; }
/** * @param string $dirname */ public function __construct($dirname) { parent::__construct(); $this->dirname = $dirname; }
/** * @param Memcached $memcached */ public function __construct($memcached) { parent::__construct(); $this->memcached = $memcached; }