Jamm\Memory\MemcacheObject::__construct PHP Method

__construct() public method

public __construct ( string $ID = '', string $host = 'localhost', integer $port = 11211 )
$ID string Symbol "." will be replaced to "_"
$host string
$port integer
    public function __construct($ID = '', $host = 'localhost', $port = 11211)
    {
        $this->setMemcacheObject($host, $port);
        $this->set_ID($ID);
    }

Usage Example

Example #1
0
 /**
  * Constructor.
  *
  * @param string $host
  * @param string $port
  */
 public function __construct($host, $port)
 {
     parent::__construct('webiny', $host, $port);
 }