Sha256: e51f931102e9e7502e091968322d9164d6675561e564d3f5e6fba37c2923e3b4

Contents?: true

Size: 507 Bytes

Versions: 7

Compression:

Stored size: 507 Bytes

Contents

<?php

namespace Predis\Commands;

class ServerSlaveOf extends Command {
    public function getId() {
        return 'SLAVEOF';
    }

    protected function filterArguments(Array $arguments) {
        if (count($arguments) === 0 || $arguments[0] === 'NO ONE') {
            return array('NO', 'ONE');
        }
        return $arguments;
    }

    protected function onPrefixKeys(Array $arguments, $prefix) {
        /* NOOP */
    }

    protected function canBeHashed() {
        return false;
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appstats-0.25.1 doc/benchmarks/Predis/Commands/ServerSlaveOf.php
appstats-0.25.0 doc/benchmarks/Predis/Commands/ServerSlaveOf.php
appstats-0.24.0 doc/benchmarks/Predis/Commands/ServerSlaveOf.php
appstats-0.23.5 doc/benchmarks/Predis/Commands/ServerSlaveOf.php
appstats-0.23.4 doc/benchmarks/Predis/Commands/ServerSlaveOf.php
appstats-0.23.3 doc/benchmarks/Predis/Commands/ServerSlaveOf.php
appstats-0.23.2 doc/benchmarks/Predis/Commands/ServerSlaveOf.php