WordPress at a glance
function is not described

SimplePie_Cache_Redis::__construct() public WP 1.0

Create a new cache object

{} It's a method of the class: SimplePie_Cache_Redis{}

No Hooks.

Return

null. Nothing.

Usage

$SimplePie_Cache_Redis = new SimplePie_Cache_Redis();
$SimplePie_Cache_Redis->__construct( $location, $name, $options );
$location(string) (required)
Location string (from SimplePie::$cache_location)
$name(string) (required)
Unique ID for the cache
$options **
-
Default: null

Code of SimplePie_Cache_Redis::__construct() WP 5.7.2

<?php
public function __construct($location, $name, $options = null) {
    //$this->cache = \flow\simple\cache\Redis::getRedisClientInstance();
    $parsed = SimplePie_Cache::parse_URL($location);
    $redis = new Redis();
    $redis->connect($parsed['host'], $parsed['port']);
    if (isset($parsed['pass'])) {
        $redis->auth($parsed['pass']);
    }
    if (isset($parsed['path'])) {
        $redis->select((int)substr($parsed['path'], 1));
    }
    $this->cache = $redis;

    if (!is_null($options) && is_array($options)) {
        $this->options = $options;
    } else {
        $this->options = array (
            'prefix' => 'rss:simple_primary:',
            'expire' => 0,
        );
    }

    $this->name = $this->options['prefix'] . $name;
}