Snc\RedisBundle\Tests\Profiler\Storage\Mock\RedisMock::append PHP Method

append() public method

Append data to an existing item.
public append ( string $key, string $value ) : integer
$key string
$value string
return integer Size of the value after the append
    public function append($key, $value)
    {
        if (!$this->connected) {
            return false;
        }
        if (isset($this->storage[$key])) {
            $this->storeData($key, $this->getData($key) . $value);
            return strlen($this->storage[$key]);
        }
        return false;
    }