RedisException

Description

Connection refused

Source File

/var/www/framework-3.1.10/Caching/TRedisCache.php (124)

0113:      * @throws TConfigurationException if php-redis extension is not installed or redis cache sever connection fails
0114:      */
0115:     public function init($config)
0116:     {
0117:         if (!extension_loaded('redis') || !class_exists('\Redis', false)) {
0118:             throw new TConfigurationException('rediscache_extension_required');
0119:         }
0120:         $this->_cache = new \Redis();
0121:         if ($this->_socket !== null) {
0122:             $this->_cache->connect($this->_socket);
0123:         } else {
0124: $this->_cache->connect($this->_host, $this->_port);
0125: } 0126: $this->_cache->setOption(\Redis::OPT_SERIALIZER, \Redis::SERIALIZER_PHP); 0127: //$this->_cache->select($this->_index); 0128: parent::init($config); 0129: $this->_initialized = true; 0130: } 0131: public function valid($key) 0132: { 0133: return true; 0134: } 0135: /** 0136: * @return string the host name of the redis cache server

Stack Trace

#0 /var/www/framework-3.1.10/Caching/TRedisCache.php(124): Redis->connect('redisproxy', 23121)
#1 /var/www/framework-3.1.10/TApplication.php(909): TRedisCache->init(Object(TXmlElement))
#2 /var/www/framework-3.1.10/TApplication.php(956): TApplication->applyConfiguration(Object(TApplicationConfiguration), false)
#3 /var/www/framework-3.1.10/TApplication.php(370): TApplication->initApplication()
#4 /var/www/public_html/index.php(11): TApplication->run()
#5 {main}
2025-07-05 13:11 nginx/1.18.0 PRADO/3.1.10