class RedisLoader implements LoaderInterface (View source)

Traits

Properties

protected Redis $connection

Methods

Generator|string[]
paginatedScan(Redis $redis, string $pattern)

Scan for a specific key pattern

Generator|array
paginatedScanValues(Redis $redis, string $pattern)

Get the keys and values matching a pattern

__construct(Redis $redis)

No description

clearNamespace($namespace)

No description

array
load(string $environment, string $group, string $namespace = null)

Load the given configuration group.

bool
exists(string $group, string $namespace = null)

Determine if the given configuration group exists.

void
addNamespace(string $namespace, string $hint)

Add a new namespace to the loader.

array
getNamespaces()

Returns all registered namespaces with the config loader.

array
cascadePackage(string $environment, string $package, string $group, array $items)

Apply any cascades to an array of package options.

Details

protected Generator|string[] paginatedScan(Redis $redis, string $pattern)

Scan for a specific key pattern

Parameters

Redis $redis
string $pattern

The pattern to search for ex: foo, *, foo.*

Return Value

Generator|string[]

A list of keys that match the pattern

protected Generator|array paginatedScanValues(Redis $redis, string $pattern)

Get the keys and values matching a pattern

Parameters

Redis $redis
string $pattern

The pattern to search for ex: foo, *, foo.*

Return Value

Generator|array

A list of key => value results

__construct(Redis $redis)

No description

Parameters

Redis $redis

clearNamespace($namespace)

No description

Parameters

$namespace

array load(string $environment, string $group, string $namespace = null)

Load the given configuration group.

Parameters

string $environment
string $group
string $namespace

Return Value

array

bool exists(string $group, string $namespace = null)

Determine if the given configuration group exists.

Parameters

string $group
string $namespace

Return Value

bool

void addNamespace(string $namespace, string $hint)

Add a new namespace to the loader.

Parameters

string $namespace
string $hint

Return Value

void

array getNamespaces()

Returns all registered namespaces with the config loader.

Return Value

array

array cascadePackage(string $environment, string $package, string $group, array $items)

Apply any cascades to an array of package options.

Parameters

string $environment
string $package
string $group
array $items

Return Value

array