Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RedisCaster.php

function RedisCaster::castRedisArray

File

vendor/symfony/var-dumper/Caster/RedisCaster.php, line 76

Class

RedisCaster
Casts Redis class from ext-redis to array representation.

Namespace

Symfony\Component\VarDumper\Caster

Code

public static function castRedisArray(\RedisArray $c, array $a, Stub $stub, bool $isNested) : array {
    $prefix = Caster::PREFIX_VIRTUAL;
    return $a + [
        $prefix . 'hosts' => $c->_hosts(),
        $prefix . 'function' => ClassStub::wrapCallable($c->_function()),
        $prefix . 'lastError' => $c->getLastError(),
        $prefix . 'options' => self::getRedisOptions($c),
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal