Fix README.

This commit is contained in:
Daniele Alessandri
2011-02-25 14:49:53 +01:00
parent 9e0f0078ea
commit fa08ff1b18
+8 -8
View File
@@ -10,7 +10,7 @@ Please refer to the TODO file to see which issues are still pending and what is
## Main features ##
- Full support for Redis 2.0 and 2.2. Different versions of Redis are supported via server profiles.
- Full support for Redis 1.2, 2.0 and 2.2. Different versions of Redis are supported via server profiles.
- Client-side sharding (support for consistent hashing and custom distribution strategies).
- Command pipelining on single and multiple connections.
- Abstraction for Redis transactions (>= 2.0) with support for CAS operations (>= 2.2).
@@ -32,13 +32,13 @@ for interoperability with the major frameworks and libraries.
When used in simple projects or scripts you might need to define an autoloader function:
spl_autoload_register(function($class) {
$file = PREDIS_BASE_PATH . strtr($class, '\\', '/') . '.php';
if (file_exists($file)) {
require $file;
return true;
}
});
spl_autoload_register(function($class) {
$file = PREDIS_BASE_PATH . strtr($class, '\\', '/') . '.php';
if (file_exists($file)) {
require $file;
return true;
}
});
### Connecting to a local instance of Redis ###