Daniele Alessandri
ea32f74512
New command: ZRANGEBYLEX (Redis 2.8.9).
2014-06-09 15:26:17 +02:00
Daniele Alessandri
8dbac3dd73
New command: ZLEXCOUNT (Redis 2.8.9).
2014-06-09 15:17:36 +02:00
Daniele Alessandri
2aa0b071fc
New commands: PFADD, PFCOUNT, PFMERGE (Redis 2.8.9).
...
Many thanks to @rubensayshi for his initial commits on this in #163 ,
but I had to start from scratch for the master branch first.
2014-05-30 11:32:39 +02:00
Daniele Alessandri
02e43143d3
Run php-cs against codebase.
2013-12-17 12:53:36 +01:00
Daniele Alessandri
5529e33047
Rework classes and interfaces in Predis\Command\Processor namespace.
...
- Renamed `Predis\Command\Processor\CommandProcessorInterface`
- Removed `Predis\Command\Processor\CommandProcessorChainInterface`
2013-12-17 10:57:43 +01:00
Daniele Alessandri
59b5658cf5
Big batch of phpdoc improvements and minor code styling fixes.
2013-12-10 19:21:52 +01:00
Daniele Alessandri
d0b431016d
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.
2013-11-29 22:36:32 +01:00
Daniele Alessandri
6e2fd181f1
Make sure key prefixing is skipped when command has no arguments.
...
Actually this was already the case for certain commands, but some of them
was left unguarded for such cases. This commit also fixes #109 .
The behaviour of silently skipping key prefixing when a command has no
arguments may change in the future so we added explicit tests as guards
for future changes. Predis\Command\Processor\KeyPrefixProcessor will
continue to skip key prefixing on empty arguments, regardless.
2013-03-16 16:00:33 +01:00
Daniele Alessandri
83720075f3
Make it possible to cast key prefix processor instance to string.
...
Mostly useful with string interpolation when getting the current prefix
associated to a client instance.
2012-12-27 10:50:25 +01:00
Daniele Alessandri
dc14c29676
Rename certain namespaces, interfaces and classes.
...
Now we follow a Symfony2-like naming convention for namespaces, interfaces
and classes sticking with one clear rule.
- Renamed namespaces:
- Predis\Network
- Predis\Profiles
- Predis\Iterators
- Predis\Options
- Predis\Commands
- Predis\Commands\Processors
- Renamed interfaces:
- Predis\IReplyObject
- Predis\IRedisServerError
- Predis\IConnectionFactory
- Predis\IConnectionParameters
- Predis\Options\IOption
- Predis\Options\IClientOptions
- Predis\Profile\IServerProfile
- Predis\Pipeline\IPipelineExecutor
- Predis\Distribution\INodeKeyGenerator
- Predis\Distribution\IDistributionStrategy
- Predis\Protocol\IProtocolProcessor
- Predis\Protocol\IResponseReader
- Predis\Protocol\IResponseHandler
- Predis\Protocol\ICommandSerializer
- Predis\Protocol\IComposableProtocolProcessor
- Predis\Network\IConnection
- Predis\Network\IConnectionSingle
- Predis\Network\IConnectionComposable
- Predis\Network\IConnectionCluster
- Predis\Network\IConnectionReplication
- Predis\Commands\ICommand
- Predis\Commands\IPrefixable
- Predis\Command\Processor\ICommandProcessor
- Predis\Command\Processor\ICommandProcessorChain
- Predis\Command\Processor\IProcessingSupport
- Renamed Classes:
- Predis\Commands\Command
- Predis\Network\ConnectionBase
- Classes moved to different namespaces:
- Predis\MonitorContext
Meh
2012-01-31 18:19:18 +01:00