Daniele Alessandri
64119bb4a0
Do not use different methods to initialize socket for the PhpiredisConnection.
2011-12-01 08:43:34 +01:00
Daniele Alessandri
1d635c370f
Change the visibility of certain methods in the client class.
2011-11-29 17:56:58 +01:00
Daniele Alessandri
1260c91f63
Pass the server profile to a connection initializer callback.
2011-11-29 17:17:08 +01:00
Daniele Alessandri
728afe7fcb
Redesign how Predis\ConnectionFactory works and make more sense out of it.
2011-11-29 16:32:37 +01:00
Daniele Alessandri
058e11257b
Add phpunit.xml to the list of files ignored by git.
...
The only configuration file for PHPUnit that we want to track using git is
phpunit.xml.dist since phpunit.xml is intended for user customizations of
the test suite.
2011-11-28 10:26:55 +01:00
Daniele Alessandri
31bd53b1ed
Update README.
2011-11-28 10:21:19 +01:00
Daniele Alessandri
a894f470bd
Add an "autoload.php" utility script for autoloading in examples and tests.
2011-11-28 10:19:11 +01:00
Daniele Alessandri
b7c715a03f
Rename helper method used to fetch the key tag from a key.
...
The name "getKeyHashablePart" was too generic for this method after all.
2011-11-28 10:10:28 +01:00
Daniele Alessandri
4882e23319
Move Publish/Subscribe related classes to the Predis\PubSub namespace.
2011-11-28 10:01:21 +01:00
Daniele Alessandri
7bdc2e6195
Rename a few protected/private field names.
2011-11-25 14:17:18 +01:00
Daniele Alessandri
0fee0c6d97
Remove the underscore prefix for names of private/protected fields.
2011-11-25 14:17:11 +01:00
Daniele Alessandri
5d42b41c22
[test] Run the test suite in strict mode and use output colors.
2011-11-18 21:04:07 +01:00
Daniele Alessandri
2c1f349925
[test] Use phpunit to specify the parameters of the server used by the suite.
...
This is especially handy because users can now easily override them without
modifying the source code of the test suite and just by creating a phpunit.xml
file that is automatically picked up by phpunit over the phpunit.xml.dist file
shipped within the repository.
2011-11-18 20:54:58 +01:00
Daniele Alessandri
d784838447
[test] Sleep one second to give BGSAVE the time to complete.
2011-11-18 20:43:48 +01:00
Daniele Alessandri
654907857d
Update TODO.
2011-11-18 16:38:19 +01:00
Daniele Alessandri
5d04cf540d
New commands: INCRBYFLOAT, HINCRBYFLOAT (Redis v2.6-dev).
2011-11-18 16:10:39 +01:00
Daniele Alessandri
51b998720e
New commands: PSETEX, PEXPIRE, PEXPIREAT, PTTL (Redis v2.6-dev).
2011-11-18 15:58:36 +01:00
Daniele Alessandri
4e0709ad3d
New command: SCRIPT (Redis v2.6-dev).
...
See http://redis.io/commands/script .
2011-11-18 13:55:03 +01:00
Daniele Alessandri
f75974b5d8
New command: SLOWLOG (Redis 2.2).
...
See http://redis.io/commands/slowlog .
2011-11-18 12:42:14 +01:00
Daniele Alessandri
5680cd40b5
Support the different replies of CONFIG GET|SET|RESETSTAT.
2011-11-18 12:42:09 +01:00
Daniele Alessandri
43c9900804
Run CI only on the specified branches.
...
[ci skip]
2011-11-16 21:55:08 +01:00
Daniele Alessandri
5d5001c177
Rename markdown files using the .md extension.
2011-11-13 23:09:09 +01:00
Daniele Alessandri
3d4957b06d
Merge pull request #50 from snc/travis-ci
...
Add support for Travis CI.
2011-11-13 13:54:36 -08:00
H. Westphal
734eba3165
Added travis-ci configuration.
2011-11-13 21:17:32 +01:00
H. Westphal
22cb11d057
Fixed typo.
2011-11-13 21:03:22 +01:00
Daniele Alessandri
20f9c0c155
Update composer.json with the new directive for autoloading.
2011-11-05 14:33:16 +01:00
Daniele Alessandri
29f26b0f9b
[phpdoc] Apply a few fixes to the documentation.
2011-10-22 11:41:58 +02:00
Daniele Alessandri
2f23fb03f0
Apply minor changes to the rest of the examples.
2011-10-22 11:07:25 +02:00
Daniele Alessandri
d160cd9175
Update the server-side scripting example to use the current Redis unstable.
2011-10-22 10:55:58 +02:00
Daniele Alessandri
ce75acf81f
Merge pull request #47 from GunioRobot/clean
2011-10-21 08:04:12 -07:00
Gun.io Whitespace Robot
b9ca78ac43
Remove whitespace [Gun.io WhitespaceBot]
2011-10-21 10:50:42 -04:00
Daniele Alessandri
4e6ed3f26d
[phpdoc] Add API documentation.
...
This is a starting point to add a documentation of the whole set of APIs and
classes of Predis. The next step will be to actually improve and extend it.
2011-10-21 12:54:24 +02:00
Daniele Alessandri
1f2104ef7f
Strip the license header from files when generating the monolithic Predis file.
2011-10-18 17:35:49 +02:00
Daniele Alessandri
9608a97469
Add a license header to PHP files.
2011-10-18 16:41:46 +02:00
Daniele Alessandri
b4d5b19b30
Fix a few oversights.
2011-10-18 16:19:12 +02:00
Daniele Alessandri
20d872a306
Apply some coding style changes.
2011-10-18 15:51:55 +02:00
Daniele Alessandri
4251664095
Change the way we enable/disable the safety catch to run the test suite.
...
Now we check for the presence of the file "test/enable.tests" to enable the
test suite instead of relying on the value of a constant defined in PHP. In
this way we can prevent commiting an enabled test suite by mistake since the
above mentioned file is not tracked by Git (see .gitignore)..
2011-10-15 10:58:02 +02:00
Daniele Alessandri
b5affe739c
Promote 2.4 as the default Redis server profile.
2011-10-15 10:31:38 +02:00
Daniele Alessandri
f19c6335d1
Fix parsing of replies to INFO for Redis 2.4.
...
The new string format for INFO replies has been postponed to a future version
of Redis, so we just moved the INFO class that handles them to the development
server profile.
2011-10-15 10:21:34 +02:00
Daniele Alessandri
e070f83dc5
Test suite: move tests for case-insensitive handling of commands names.
2011-10-02 23:29:03 +02:00
Daniele Alessandri
c107d937fa
Apply minor code styling change, nothing that really matters.
2011-10-02 23:19:08 +02:00
Daniele Alessandri
68dba4cb12
Ensure that commands are registered in server profiles using lowercase aliases.
2011-10-02 23:16:04 +02:00
Daniele Alessandri
f1072f8344
Update composer.json.
2011-10-02 12:18:06 +02:00
Daniele Alessandri
5e41657363
Use the new Predis\Autoloader class for tests and examples.
2011-10-02 12:07:52 +02:00
Daniele Alessandri
04b8a8f75c
Update comment to reflect old changes.
2011-10-02 11:55:23 +02:00
Daniele Alessandri
f7d9c4bac7
Merge pull request #43 from juriansluiman/feature-uppercase
...
Now Predis follows the same standard behaviour of PHP (method names are treated
case-insensitively) when invoking methods related to Redis commands, (i.e.
$client->info() or $client->INFO() makes no difference).
2011-10-02 02:40:00 -07:00
Jurian Sluiman
49355b0881
Provide better name for test method
...
testMagicUppercase()? I don't know where I got that one from...
Just changed the method name to something more describring the
actual test.
2011-09-28 18:05:46 +02:00
Jurian Sluiman
c33d053531
Add support for mixed case commands
...
Commands in Redis are most time written in uppercase, Predis supports
only lowercase commands. This change converts all commands into lower-
case, so MiXeDcAsE and UPPERCASE commands can be created as well.
2011-09-28 17:47:56 +02:00
Jurian Sluiman
0d28395aa0
Remove additional test
...
CreateCommand and supportsCommand are the only two methods which need
to be changes, so test for only those two methods.
2011-09-28 17:34:21 +02:00
Daniele Alessandri
7ebbe25171
Merge pull request #41 from thumbtack/autoloader
...
Add an autoloader class for Predis.
2011-09-27 23:18:20 -07:00