Sha256: ec87553df1ebd28ca98e3cc2a05cd60503739cd3eb61d67488462d13ccfa6f82

Contents?: true

Size: 498 Bytes

Versions: 7

Compression:

Stored size: 498 Bytes

Contents

<?php

namespace Predis\Commands\Processors;

use Predis\Commands\ICommand;

class KeyPrefixProcessor implements ICommandProcessor {
    private $_prefix;

    public function __construct($prefix) {
        $this->setPrefix($prefix);
    }

    public function setPrefix($prefix) {
        $this->_prefix = $prefix;
    }

    public function getPrefix() {
        return $this->_prefix;
    }

    public function process(ICommand $command) {
        $command->prefixKeys($this->_prefix);
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

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