NinjaMutex\Tests\Mock\MockMemcache::add PHP 메소드

add() 공개 메소드

public add ( string $key, mixed $value ) : boolean
$key string
$value mixed
리턴 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;
    }