mirror of
https://github.com/predis/predis.git
synced 2026-10-10 05:47:02 +00:00
Move key prefixing logic from command classes to prefix processor.
While command classes define how the client should filter arguments or parse responses, key prefixing depends on the actual command signature as defined by Redis so it really is something that should be handled separately as the norm. Developers can define new handlers or override existing ones, but they can still define the key prefixing logic inside their command classes by implementing Predis\Command\PrefixableCommandInterface: the key prefix processor will just use that by overriding any defined handler.
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Predis\Command;
|
||||
* @link http://redis.io/commands/setbit
|
||||
* @author Daniele Alessandri <suppakilla@gmail.com>
|
||||
*/
|
||||
class StringSetBit extends PrefixableCommand
|
||||
class StringSetBit extends AbstractCommand
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
||||
Reference in New Issue
Block a user