Sha256: 03cba69698a133d2c611efbc8f50e7b9ac62f088e22c60d2d2413d68faa733c6

Contents?: true

Size: 461 Bytes

Versions: 7

Compression:

Stored size: 461 Bytes

Contents

<?php

namespace Predis\Commands;

class ServerEval extends Command {
    public function getId() {
        return 'EVAL';
    }

    protected function onPrefixKeys(Array $arguments, $prefix) {
        $arguments = $this->getArguments();
        for ($i = 2; $i < $arguments[1] + 2; $i++) {
            $arguments[$i] = "$prefix{$arguments[$i]}";
        }
        return $arguments;
    }

    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/ServerEval.php
appstats-0.25.0 doc/benchmarks/Predis/Commands/ServerEval.php
appstats-0.24.0 doc/benchmarks/Predis/Commands/ServerEval.php
appstats-0.23.5 doc/benchmarks/Predis/Commands/ServerEval.php
appstats-0.23.4 doc/benchmarks/Predis/Commands/ServerEval.php
appstats-0.23.3 doc/benchmarks/Predis/Commands/ServerEval.php
appstats-0.23.2 doc/benchmarks/Predis/Commands/ServerEval.php