BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
RedisConnRef Class Reference
Inheritance diagram for RedisConnRef:
Collaboration diagram for RedisConnRef:

Public Member Functions

 __construct (RedisConnectionPool $pool, $server, Redis $conn, LoggerInterface $logger)
 
 setLogger (LoggerInterface $logger)
 
 getServer ()
 
 getLastError ()
 
 clearLastError ()
 
 __call ($name, $arguments)
 
 luaEval ($script, array $params, $numKeys)
 
 isConnIdentical (Redis $conn)
 

Protected Attributes

 $pool
 
 $conn
 
 $server
 
 $lastError
 
 $logger
 

Detailed Description

Helper class to handle automatically marking connectons as reusable (via RAII pattern)

This class simply wraps the Redis class and can be used the same way

Since
1.21

Constructor & Destructor Documentation

RedisConnRef::__construct ( RedisConnectionPool  $pool,
  $server,
Redis  $conn,
LoggerInterface  $logger 
)
Parameters
RedisConnectionPool$pool
string$server
Redis$conn
LoggerInterface$logger

Member Function Documentation

RedisConnRef::getServer ( )
Returns
string
Since
1.23
RedisConnRef::isConnIdentical ( Redis  $conn)
Parameters
Redis$conn
Returns
bool
RedisConnRef::luaEval (   $script,
array  $params,
  $numKeys 
)
Parameters
string$script
array$params
int$numKeys
Returns
mixed
Exceptions
RedisException
RedisConnRef::setLogger ( LoggerInterface  $logger)

Sets a logger instance on the object.

Parameters
LoggerInterface$logger
Returns
void

Implements Psr\Log\LoggerAwareInterface.


The documentation for this class was generated from the following file: