ConnectionFactoryOption
in package
implements
OptionInterface
Configures a connection factory used by the client to create new connection instances for single Redis nodes.
Tags
Interfaces, Classes and Traits
- OptionInterface
- Defines an handler used by Predis\Configuration\Options to filter, validate or return default values for a given option.
Table of Contents
- filter() : mixed
- Filters and validates the passed value.
- getDefault() : mixed
- Returns the default value for the option.
Methods
filter()
Filters and validates the passed value.
public
filter(OptionsInterface $options, mixed $value) : mixed
Parameters
- $options : OptionsInterface
-
Options container.
- $value : mixed
-
Input value.
Return values
mixed —getDefault()
Returns the default value for the option.
public
getDefault(OptionsInterface $options) : mixed
Parameters
- $options : OptionsInterface
-
Options container.