You are here

public static function Redis_Client::reset in Redis 7.2

Same name and namespace in other branches
  1. 7.3 lib/Redis/Client.php \Redis_Client::reset()

For unit testing only reset internals.

2 calls to Redis_Client::reset()
Redis_Tests_AbstractUnitTestCase::prepareClientManager in lib/Redis/Tests/AbstractUnitTestCase.php
Prepare client manager
Redis_Tests_AbstractUnitTestCase::restoreClientManager in lib/Redis/Tests/AbstractUnitTestCase.php
Restore client manager

File

lib/Redis/Client.php, line 197

Class

Redis_Client
Common code and client singleton, for all Redis clients.

Code

public static function reset() {
  self::$globalPrefix = null;
  self::$_clientInterface = null;
  self::$_client = null;
}