Skip to content

What is the correct way defining multiple memcached servers with envvars #489

Description

@mmattel

Memcached allows the definition of multiple server:port pairs according the docs.
The docs also allows when using multiple pairs to add to each pair a weight such as 'mem1.domain.com', 11211, 33.

'memcached_servers' => [
	// hostname, port and optional weight. Also see:
	// http://www.php.net/manual/en/memcached.addservers.php
	// http://www.php.net/manual/en/memcached.addserver.php
	['localhost', 11211],
	//[other.host.local', 11211],
  ],

But the way how envvars are defined, allow only one pair without weight:

        'memcached_servers' => [
          [
            getenv('OWNCLOUD_MEMCACHED_HOST'),
            getenv('OWNCLOUD_MEMCACHED_PORT'),
          ],
        ],

What is the correct way defining multiple memcached servers with envvars ?

@DeepDiver1975

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions