mirror of
https://github.com/predis/predis.git
synced 2026-10-17 01:06:20 +00:00
Add the 'prefix' client option. The client will automatically prepend the specified prefix string to each key.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user