Daniele Alessandri
3b70d1e020
Change code formatting for the classes in the Predis\Commands namespace.
2011-03-27 19:46:02 +02:00
Daniele Alessandri
2201dd1df2
Merge branch 'command_hashing'
2011-03-27 18:50:55 +02:00
Daniele Alessandri
c4064e5801
Some commands accepting multiple keys can be hashed if all the keys return the same hash (key tags).
...
List of the commands affected by this change (based on Redis 2.2):
MSET, MGET, DEL, BLPOP, BRPOP, RPOPLPUSH, BRPOPLPUSH, SINTER, SINTERSTORE,
SUNION, SUNIONSTORE, SDIFF, SDIFFSTORE, ZINTERSTORE, ZUNIONSTORE.
2011-03-27 12:12:51 +02:00
Daniele Alessandri
d6a445f1ec
Fix SINTERSTORE and SUNIONSTORE to accept an array for the list of source keys.
2011-03-27 09:38:30 +02:00
Daniele Alessandri
b007b753f5
Fix SUBSCRIBE and PSUBSCRIBE so that they can accept a list of channels for subscription.
2011-03-26 22:45:52 +01:00
Daniele Alessandri
b84c84007f
Remove Predis\ICommand::canBeHashed() as a public method required for command classes and reuse it internally to Predis\Command.
2011-03-24 00:43:02 +01:00
Daniele Alessandri
4e0e1908cd
Minor speed optimizations.
2011-03-23 23:27:05 +01:00
Daniele Alessandri
930a1096e1
Refactor the key hashing logic for Redis commands.
2011-03-23 22:58:49 +01:00
Daniele Alessandri
be4d01c071
Remove a useless method declaration.
2011-03-06 12:32:43 +01:00
Daniele Alessandri
74b6d05b48
Move the database info parsing bits for the reply to INFO in a separate function.
2011-03-06 12:24:51 +01:00
Daniele Alessandri
58eb4e2477
Make the reply parser for INFO < 2.4 somewhat backwards compatible when used against Redis >= 2.4.
2011-03-06 12:22:22 +01:00
Daniele Alessandri
3186da49b4
Parse allocation_stats if present in the INFO reply.
2011-03-06 12:14:19 +01:00
Daniele Alessandri
6c9b246b2b
Implement a new command class for INFO to parse the new reply format for this command in Redis > 2.2.
2011-03-05 15:47:54 +01:00
Daniele Alessandri
38e76cbbc8
Allow passing an array for the list of source keys to be used in ZUNIONSTORE/ZINTERSTORE.
2011-03-05 11:56:10 +01:00
Daniele Alessandri
99c8acfc8c
Clean up leftovers.
2011-03-04 19:38:47 +01:00
Daniele Alessandri
30bc53ee75
Rename method ICommand::getCommandId() to ICommand::getId().
2011-03-04 19:37:10 +01:00
Daniele Alessandri
0d5fb3319d
Move Predis\Command and Predis\ICommand to the Predis\Commands namespace.
2011-03-04 19:21:41 +01:00
Daniele Alessandri
fda4f32f06
Rename server profile classes to comply with how underscores are interpreted in the PSR-0 standard.
2011-02-27 13:37:03 +01:00
Jordi Boggiano
30f908cd85
Convert monolithic one-file-lib to a proper PSR-0 file tree
2011-02-21 14:17:57 +01:00