/** * @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(); }
public function __construct($lifetime, $prefix) { $this->redis = org_glizy_redis_Client::getConnection(); $this->lifetime = (int) $lifetime; $this->prefix = $prefix . ':'; }