mirror of
https://github.com/predis/predis.git
synced 2026-10-17 01:06:20 +00:00
Handle key prefixing in a more consistent way, and make it a first-class citizen in Predis.
This commit is contained in:
@@ -20,6 +20,14 @@ class StringSetMultiple extends Command {
|
||||
return $arguments;
|
||||
}
|
||||
|
||||
protected function onPrefixKeys(Array $arguments, $prefix) {
|
||||
$length = count($arguments);
|
||||
for ($i = 0; $i < $length; $i += 2) {
|
||||
$arguments[$i] = "$prefix{$arguments[$i]}";
|
||||
}
|
||||
return $arguments;
|
||||
}
|
||||
|
||||
protected function canBeHashed() {
|
||||
$args = $this->getArguments();
|
||||
$keys = array();
|
||||
|
||||
Reference in New Issue
Block a user