Example #1
0
 /**
  * @param      $model
  * @param      $lifeTime
  * @param null $cacheFolder
  */
 function __construct($model, $lifeTime = -1, $cacheFolder = null)
 {
     $this->model = $model;
     $this->lifeTime = $lifeTime;
     $this->redis = org_glizy_redis_Client::getConnection();
 }
Example #2
0
 public function __construct($lifetime, $prefix)
 {
     $this->redis = org_glizy_redis_Client::getConnection();
     $this->lifetime = (int) $lifetime;
     $this->prefix = $prefix . ':';
 }