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
+3
View File
@@ -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);
}