Sha256: 4021a8ccf6b740947ad7d5872f082b384a9f7e7eb369f53aa680db458cd3a117

Contents?: true

Size: 616 Bytes

Versions: 7

Compression:

Stored size: 616 Bytes

Contents

<?php

namespace Predis\Commands;

use Predis\Helpers;

class KeyDelete extends Command {
    public function getId() {
        return 'DEL';
    }

    protected function filterArguments(Array $arguments) {
        return Helpers::filterArrayArguments($arguments);
    }

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

    protected function canBeHashed() {
        $args = $this->getArguments();
        if (count($args) === 1) {
            return true;
        }
        return $this->checkSameHashForKeys($args);
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

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