Documentation

ReplicationOption
in package
implements OptionInterface

Configures an aggregate connection used for master/slave replication among multiple Redis nodes.

Tags
author

Daniele Alessandri suppakilla@gmail.com

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.

Tags
todo

There's more code than needed due to a bug in filter_var() as discussed here https://bugs.php.net/bug.php?id=49510 and different behaviours when encountering NULL values on PHP 5.3.

Return values
mixed

Search results