mirror of
https://github.com/predis/predis.git
synced 2026-09-16 21:36:58 +00:00
Move Predis\Command and Predis\ICommand to the Predis\Commands namespace.
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@ its way into a stable Predis release, then you can start off by creating a new
|
||||
class that matches the command type and its behaviour and then bind it to a
|
||||
client instance at runtime. Actually, it is easier done than said:
|
||||
|
||||
class BrandNewRedisCommand extends Predis\Command {
|
||||
class BrandNewRedisCommand extends Predis\Commands\Command {
|
||||
public function getCommandId() { return 'NEWCMD'; }
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
require_once 'SharedConfigurations.php';
|
||||
|
||||
use Predis\ICommand;
|
||||
use Predis\ConnectionParameters;
|
||||
use Predis\Commands\ICommand;
|
||||
use Predis\Network\StreamConnection;
|
||||
|
||||
class SimpleDebuggableConnection extends StreamConnection {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Predis;
|
||||
|
||||
use Predis\Commands\ICommand;
|
||||
use Predis\Network\IConnection;
|
||||
use Predis\Network\IConnectionSingle;
|
||||
use Predis\Network\ConnectionCluster;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Predis;
|
||||
|
||||
use Predis\Commands\ICommand;
|
||||
use Predis\Pipeline\IPipelineExecutor;
|
||||
|
||||
class CommandPipeline {
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Append extends Command {
|
||||
public function getCommandId() { return 'APPEND'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Auth extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'AUTH'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class BackgroundRewriteAppendOnlyFile extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'BGREWRITEAOF'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class BackgroundSave extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'BGSAVE'; }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Predis;
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Distribution\IDistributionStrategy;
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Config extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'CONFIG'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class DatabaseSize extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'DBSIZE'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Decrement extends Command {
|
||||
public function getCommandId() { return 'DECR'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class DecrementBy extends Command {
|
||||
public function getCommandId() { return 'DECRBY'; }
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Utils;
|
||||
use Predis\Command;
|
||||
|
||||
class Delete extends Command {
|
||||
public function getCommandId() { return 'DEL'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Discard extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'DISCARD'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class DoEcho extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'ECHO'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Exec extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'EXEC'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Exists extends Command {
|
||||
public function getCommandId() { return 'EXISTS'; }
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Expire extends Command {
|
||||
public function getCommandId() { return 'EXPIRE'; }
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ExpireAt extends Command {
|
||||
public function getCommandId() { return 'EXPIREAT'; }
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class FlushAll extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'FLUSHALL'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class FlushDatabase extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'FLUSHDB'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Get extends Command {
|
||||
public function getCommandId() { return 'GET'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class GetBit extends Command {
|
||||
public function getCommandId() { return 'GETBIT'; }
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Utils;
|
||||
use Predis\Command;
|
||||
|
||||
class GetMultiple extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class GetRange extends Command {
|
||||
public function getCommandId() { return 'GETRANGE'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class GetSet extends Command {
|
||||
public function getCommandId() { return 'GETSET'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class HashDelete extends Command {
|
||||
public function getCommandId() { return 'HDEL'; }
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class HashExists extends Command {
|
||||
public function getCommandId() { return 'HEXISTS'; }
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class HashGet extends Command {
|
||||
public function getCommandId() { return 'HGET'; }
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
use Predis\Iterators\MultiBulkResponseTuple;
|
||||
|
||||
class HashGetAll extends Command {
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class HashGetMultiple extends Command {
|
||||
public function getCommandId() { return 'HMGET'; }
|
||||
public function filterArguments(Array $arguments) {
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class HashIncrementBy extends Command {
|
||||
public function getCommandId() { return 'HINCRBY'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class HashKeys extends Command {
|
||||
public function getCommandId() { return 'HKEYS'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class HashLength extends Command {
|
||||
public function getCommandId() { return 'HLEN'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class HashSet extends Command {
|
||||
public function getCommandId() { return 'HSET'; }
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class HashSetMultiple extends Command {
|
||||
public function getCommandId() { return 'HMSET'; }
|
||||
public function filterArguments(Array $arguments) {
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class HashSetPreserve extends Command {
|
||||
public function getCommandId() { return 'HSETNX'; }
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class HashValues extends Command {
|
||||
public function getCommandId() { return 'HVALS'; }
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Predis;
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Distribution\IDistributionStrategy;
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Increment extends Command {
|
||||
public function getCommandId() { return 'INCR'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class IncrementBy extends Command {
|
||||
public function getCommandId() { return 'INCRBY'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Info extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'INFO'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Keys extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'KEYS'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class LastSave extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'LASTSAVE'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListIndex extends Command {
|
||||
public function getCommandId() { return 'LINDEX'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListInsert extends Command {
|
||||
public function getCommandId() { return 'LINSERT'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListLength extends Command {
|
||||
public function getCommandId() { return 'LLEN'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListPopFirst extends Command {
|
||||
public function getCommandId() { return 'LPOP'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListPopFirstBlocking extends Command {
|
||||
public function getCommandId() { return 'BLPOP'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListPopLast extends Command {
|
||||
public function getCommandId() { return 'RPOP'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListPopLastBlocking extends Command {
|
||||
public function getCommandId() { return 'BRPOP'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListPopLastPushHead extends Command {
|
||||
public function getCommandId() { return 'RPOPLPUSH'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListPopLastPushHeadBlocking extends Command {
|
||||
public function getCommandId() { return 'BRPOPLPUSH'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListPushHead extends Command {
|
||||
public function getCommandId() { return 'LPUSH'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListPushHeadX extends Command {
|
||||
public function getCommandId() { return 'LPUSHX'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListPushTail extends Command {
|
||||
public function getCommandId() { return 'RPUSH'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListPushTailX extends Command {
|
||||
public function getCommandId() { return 'RPUSHX'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListRange extends Command {
|
||||
public function getCommandId() { return 'LRANGE'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListRemove extends Command {
|
||||
public function getCommandId() { return 'LREM'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListSet extends Command {
|
||||
public function getCommandId() { return 'LSET'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class ListTrim extends Command {
|
||||
public function getCommandId() { return 'LTRIM'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class MoveKey extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'MOVE'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Multi extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'MULTI'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Persist extends Command {
|
||||
public function getCommandId() { return 'PERSIST'; }
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Ping extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'PING'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Publish extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'PUBLISH'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Quit extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'QUIT'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class RandomKey extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'RANDOMKEY'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Rename extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'RENAME'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class RenamePreserve extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'RENAMENX'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Save extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'SAVE'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SelectDatabase extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'SELECT'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Set extends Command {
|
||||
public function getCommandId() { return 'SET'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetAdd extends Command {
|
||||
public function getCommandId() { return 'SADD'; }
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetBit extends Command {
|
||||
public function getCommandId() { return 'SETBIT'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetCardinality extends Command {
|
||||
public function getCommandId() { return 'SCARD'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetDifference extends SetIntersection {
|
||||
public function getCommandId() { return 'SDIFF'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetDifferenceStore extends SetIntersectionStore {
|
||||
public function getCommandId() { return 'SDIFFSTORE'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetExpire extends Command {
|
||||
public function getCommandId() { return 'SETEX'; }
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Utils;
|
||||
use Predis\Command;
|
||||
|
||||
class SetIntersection extends Command {
|
||||
public function getCommandId() { return 'SINTER'; }
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Utils;
|
||||
use Predis\Command;
|
||||
|
||||
class SetIntersectionStore extends Command {
|
||||
public function getCommandId() { return 'SINTERSTORE'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetIsMember extends Command {
|
||||
public function getCommandId() { return 'SISMEMBER'; }
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetMembers extends Command {
|
||||
public function getCommandId() { return 'SMEMBERS'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetMove extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'SMOVE'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetMultiple extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'MSET'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetMultiplePreserve extends SetMultiple {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'MSETNX'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetPop extends Command {
|
||||
public function getCommandId() { return 'SPOP'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetPreserve extends Command {
|
||||
public function getCommandId() { return 'SETNX'; }
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetRandomMember extends Command {
|
||||
public function getCommandId() { return 'SRANDMEMBER'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetRange extends Command {
|
||||
public function getCommandId() { return 'SETRANGE'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetRemove extends Command {
|
||||
public function getCommandId() { return 'SREM'; }
|
||||
public function parseResponse($data) { return (bool) $data; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetUnion extends SetIntersection {
|
||||
public function getCommandId() { return 'SUNION'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SetUnionStore extends SetIntersectionStore {
|
||||
public function getCommandId() { return 'SUNIONSTORE'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Shutdown extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'SHUTDOWN'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SlaveOf extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'SLAVEOF'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Sort extends Command {
|
||||
public function getCommandId() { return 'SORT'; }
|
||||
public function filterArguments(Array $arguments) {
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Strlen extends Command {
|
||||
public function getCommandId() { return 'STRLEN'; }
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class Subscribe extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'SUBSCRIBE'; }
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Predis\Commands;
|
||||
|
||||
use Predis\Command;
|
||||
|
||||
class SubscribeByPattern extends Command {
|
||||
public function canBeHashed() { return false; }
|
||||
public function getCommandId() { return 'PSUBSCRIBE'; }
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user