config = $config; $this->logLevel = \Phacil\Framework\Config::Debug() ? 6 : $this->logLevel; return; } /** * * {@inheritdoc} */ function getLogLevel() { return $this->config->get('session_redis_log_level') ?: $this->logLevel; } /** * {@inheritdoc} */ public function getHost() { return $this->config->get('session_redis_dsn') ? : self::PARAM_HOST; } /** * {@inheritdoc} */ public function getPort() { return $this->config->get('session_redis_port') ?: self::PARAM_PORT; } /** * {@inheritdoc} */ public function getDatabase() { return (string)$this->config->get('session_redis_database') ?: self::PARAM_DATABASE; } /** * {@inheritdoc} */ public function getPassword() { return $this->config->get('session_redis_password') ?: ''; } /** * {@inheritdoc} */ public function getTimeout() { return $this->config->get('session_redis_timeout') ? : self::PARAM_TIMEOUT; } /** * {@inheritdoc} */ public function getPersistentIdentifier() { return $this->config->get('session_redis_persistent_id') ?: ''; } /** * {@inheritdoc} */ public function getCompressionThreshold() { return $this->config->get('session_redis_compression_threshold') ?: self::DEFAULT_COMPRESSION_THRESHOLD ; } /** * {@inheritdoc} */ public function getCompressionLibrary() { return $this->config->get('session_redis_compression_library') ?: (self::PARAM_COMPRESSION_LIBRARY); } /** * {@inheritdoc} */ public function getMaxConcurrency() { return $this->config->get('session_redis_max_concurrency') ?: (self::PARAM_MAX_CONCURRENCY); } /** * {@inheritdoc} */ public function getMaxLifetime() { return $this->config->get('session_redis_max_lifetime') ?: self::SESSION_MAX_LIFETIME; } /** * {@inheritdoc} */ public function getMinLifetime() { return (int)$this->config->get('session_redis_min_lifetime') ?: (self::PARAM_MIN_LIFETIME); } /** * {@inheritdoc} */ public function getDisableLocking() { return (bool)$this->config->get('session_redis_disable_locking') ?: (self::PARAM_DISABLE_LOCKING); } /** * {@inheritdoc} */ public function getBotLifetime() { return (int) $this->config->get('session_redis_bot_lifetime') ?: (self::PARAM_BOT_LIFETIME); } /** * {@inheritdoc} */ public function getBotFirstLifetime() { return (string)$this->config->get('session_redis_bot_first_lifetime') ?: (self::PARAM_BOT_FIRST_LIFETIME); } /** * {@inheritdoc} */ public function getFirstLifetime() { return (int)$this->config->get('session_redis_first_lifetime') ?: (self::PARAM_FIRST_LIFETIME); } /** * {@inheritdoc} */ public function getBreakAfter() { return (int)$this->config->get('session_redis_break_after') ?: (self::PARAM_BREAK_AFTER); } /** * {@inheritdoc} */ public function getLifetime() { return (int)$this->config->get('session_redis_expire') ?: self::PARAM_SESSION_LIFETIME; } /** * {@inheritdoc} */ public function getSentinelServers() { return $this->config->get('session_redis_sentinel_servers') ?: null; } /** * {@inheritdoc} */ public function getSentinelMaster() { return $this->config->get('session_redis_sentinel_master') ?: null; } /** * {@inheritdoc} */ public function getSentinelVerifyMaster() { return $this->config->get('session_redis_verify_master') ?: (null); } /** * {@inheritdoc} */ public function getSentinelConnectRetries() { return $this->config->get('session_redis_sentinel_connect_retries') ?: (self::PARAM_SENTINEL_CONNECT_RETRIES); } /** * {@inheritdoc} */ public function getFailAfter() { return (int)$this->config->get('session_redis_fail_after') ?: self::DEFAULT_FAIL_AFTER; } }