Index Documentation

MemcachedProviderInfo
in package
implements ICacheProviderInfo

Represents Memcached provider info.

Table of Contents

Interfaces

ICacheProviderInfo
Base type for cache provider info.

Methods

__construct()  : mixed
getEndPoints()  : array<string|int, mixed>
Gets server endpoints.
getPersistentName()  : string|null
Name of persistent connection, will return null if disabled.
getPrefixKey()  : string
A prefix that gets applied to every key.
isPersistent()  : bool
Whether the connection should be persistent.
shouldEnableCompression()  : bool
Whether compression should be applied.
shouldTcpNoDelay()  : bool
Whether nagle's algorithm should be disabled on the connection.
shouldUseBinaryProtocol()  : bool
Whether the binary protocol should be used rather than ASCII.

Methods

__construct()

public __construct(array<string|int, mixed> $endPoints, string $prefixKey, string $persistName, bool $useBinaryProto, bool $enableCompression, bool $tcpNoDelay) : mixed
Parameters
$endPoints : array<string|int, mixed>
$prefixKey : string
$persistName : string
$useBinaryProto : bool
$enableCompression : bool
$tcpNoDelay : bool

getEndPoints()

Gets server endpoints.

public getEndPoints() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPersistentName()

Name of persistent connection, will return null if disabled.

public getPersistentName() : string|null
Return values
string|null

getPrefixKey()

A prefix that gets applied to every key.

public getPrefixKey() : string
Return values
string

isPersistent()

Whether the connection should be persistent.

public isPersistent() : bool
Return values
bool

shouldEnableCompression()

Whether compression should be applied.

public shouldEnableCompression() : bool
Return values
bool

shouldTcpNoDelay()

Whether nagle's algorithm should be disabled on the connection.

public shouldTcpNoDelay() : bool
Return values
bool

shouldUseBinaryProtocol()

Whether the binary protocol should be used rather than ASCII.

public shouldUseBinaryProtocol() : bool
Return values
bool

        
On this page

Search results