Example #1
0
 /**
  * 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;
 }
Example #4
0
 /**
  * @param $client Redis
  */
 public function __construct(Redis $client)
 {
     parent::__construct();
     $this->client = $client;
 }
Example #5
0
 /**
  * @param \Redis $redis
  */
 public function __construct(\Redis $redis)
 {
     parent::__construct();
     $this->redis = $redis;
     $this->ttl = [];
 }
Example #6
0
 public function __destruct()
 {
     parent::__destruct();
     foreach ($this->pdo as $name => $pdo) {
         unset($this->pdo[$name]);
     }
 }
Example #7
0
 /**
  * @param Memcache $memcache
  */
 public function __construct(Memcache $memcache)
 {
     parent::__construct();
     $this->memcache = $memcache;
 }
Example #8
0
 /**
  * @param string $dirname
  */
 public function __construct($dirname)
 {
     parent::__construct();
     $this->dirname = $dirname;
 }
Example #9
0
 /**
  * @param Memcached $memcached
  */
 public function __construct($memcached)
 {
     parent::__construct();
     $this->memcached = $memcached;
 }