mirror of
https://github.com/predis/predis.git
synced 2026-10-15 00:07:17 +00:00
Add the 'prefix' client option. The client will automatically prepend the specified prefix string to each key.
This commit is contained in:
@@ -16,6 +16,9 @@ class Client {
|
||||
$options = $this->filterOptions($options);
|
||||
$this->_options = $options;
|
||||
$this->_profile = $options->profile;
|
||||
if ($prefixer = $options->prefix) {
|
||||
$this->_profile->setProcessor($prefixer);
|
||||
}
|
||||
$this->_connectionFactory = $options->connections;
|
||||
$this->_connection = $this->initializeConnection($parameters);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user