NinjaMutex\Tests\Mock\MockPhpRedisClient::get PHP Method

get() public method

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