public function seeInMemcached($key, $value = null)
    {
        $actual = $this->memcache->get($key);
        $this->debugSection("Value", $actual);

        if (null === $value) {
            $this->assertNotFalse($actual, "Cannot find key '$key' in Memcached");
        } else {
            $this->assertEquals($value, $actual, "Cannot find key '$key' in Memcached with the provided value");
        }
    }
public function seeInMemcached($key, $value = null)
    {
        $actual = $this->memcache->get($key);
        $this->debugSection("Value", $actual);

        if (null === $value) {
            $this->assertNotFalse($actual, "Cannot find key '$key' in Memcached");
        } else {
            $this->assertEquals($value, $actual, "Cannot find key '$key' in Memcached with the provided value");
        }
    }
public function seeInMemcached ( $ key , $ value = null ) { $ actual = $ this -> memcache -> get ( $ key ) ; $ this -> debugSection ( "Value" , $ actual ) ; if ( null === $ value ) { $ this -> assertNotFalse ( $ actual , "Cannot find key '$key' in Memcached" ) ; } else { $ this -> assertEquals ( $ value , $ actual , "Cannot find key '$key' in Memcached with the provided value" ) ; } }
Checks item in Memcached exists and the same as expected.

Examples:

``` php
<?php
// With only one argument, only checks the key exists
$I->seeInMemcached('users_count');

// Checks a 'users_count' exists and has the value 200
$I->seeInMemcached('users_count', 200);
?>
```

@param $key
@param $value
Checks item in Memcached exists and the same as expected .