Add the 'prefix' client option. The client will automatically prepend the specified prefix string to each key.

This commit is contained in:
Daniele Alessandri
2011-05-05 17:16:14 +02:00
parent 46db0409a1
commit e97e13bde5
4 changed files with 17 additions and 4 deletions
+2
View File
@@ -3,6 +3,7 @@
namespace Predis;
use Predis\Options\IOption;
use Predis\Options\ClientPrefix;
use Predis\Options\ClientProfile;
use Predis\Options\ClientCluster;
use Predis\Options\ClientConnectionFactory;
@@ -23,6 +24,7 @@ class ClientOptions {
'profile' => new ClientProfile(),
'connections' => new ClientConnectionFactory(),
'cluster' => new ClientCluster(),
'prefix' => new ClientPrefix(),
);
return self::$_sharedOptions;
}