NinjaMutex\Tests\Mock\MockPredisClient::get PHP 메소드

get() 공개 메소드

public get ( string $key ) : mixed
$key string
리턴 mixed
    public function get($key)
    {
        if (!$this->available) {
            return false;
        }
        if (!isset(self::$data[$key])) {
            return null;
        }
        return (string) self::$data[$key];
    }