Sha256: 2b168bc3103854b8402b6a3cc28a2c7f2fb6bbcf5fc7984ca6302ef6d7e4735c

Contents?: true

Size: 622 Bytes

Versions: 7

Compression:

Stored size: 622 Bytes

Contents

<?php

namespace Predis\Commands;

class TransactionWatch extends Command {
    public function getId() {
        return 'WATCH';
    }

    protected function filterArguments(Array $arguments) {
        if (isset($arguments[0]) && is_array($arguments[0])) {
            return $arguments[0];
        }
        return $arguments;
    }

    protected function onPrefixKeys(Array $arguments, $prefix) {
        return PrefixHelpers::multipleKeys($arguments, $prefix);
    }

    protected function canBeHashed() {
        return false;
    }

    public function parseResponse($data) {
        return (bool) $data;
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

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