NinjaMutex\Tests\Mock\MockMemcache::add PHP Method

add() public method

public add ( string $key, mixed $value ) : boolean
$key string
$value mixed
return boolean
    public function add($key, $value)
    {
        if (!$this->available) {
            return false;
        }
        if (false === $this->get($key)) {
            self::$data[$key] = (string) $value;
            return true;
        }
        return false;
    }