getResource() 공개 메소드

Returns the underlying resource used to communicate with Redis.
public getResource ( ) : mixed
리턴 mixed
예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getResource()
 {
     return $this->connection->getResource();
 }
 /**
  * Asserts that the connection is not using a persistent resource stream.
  *
  * This assertion will trigger a connect() operation if the connection has
  * not been open yet.
  *
  * @param NodeConnectionInterface $connection Connection instance.
  */
 protected function assertNonPersistentConnection(NodeConnectionInterface $connection)
 {
     $this->assertSame('stream', get_resource_type($connection->getResource()));
 }