MemcachedProviderInfo
in package
implements
CacheProviderInfo
Represents Memcached provider info.
Table of Contents
Interfaces
- CacheProviderInfo
- Base type for cache provider info.
Methods
- __construct() : mixed
- getEndPoints() : array<int, EndPoint, : int}>
- 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<int, EndPoint, : int}> $endPoints, string $prefixKey, string $persistName, bool $useBinaryProto, bool $enableCompression, bool $tcpNoDelay) : mixed
Parameters
- $endPoints : array<int, EndPoint, : int}>
-
Memcached end points.
- $prefixKey : string
-
Prefix to apply to keys.
- $persistName : string
-
Persistent connection name.
- $useBinaryProto : bool
-
Use the binary protocol.
- $enableCompression : bool
-
Use compression.
- $tcpNoDelay : bool
-
Disable Nagle's algorithm.
getEndPoints()
Gets server endpoints.
public
getEndPoints() : array<int, EndPoint, : int}>
Return values
array<int, EndPoint, : int}>getPersistentName()
Name of persistent connection, will return null if disabled.
public
getPersistentName() : string|null
Return values
string|nullgetPrefixKey()
A prefix that gets applied to every key.
public
getPrefixKey() : string
Return values
stringisPersistent()
Whether the connection should be persistent.
public
isPersistent() : bool
Return values
boolshouldEnableCompression()
Whether compression should be applied.
public
shouldEnableCompression() : bool
Return values
boolshouldTcpNoDelay()
Whether nagle's algorithm should be disabled on the connection.
public
shouldTcpNoDelay() : bool
Return values
boolshouldUseBinaryProtocol()
Whether the binary protocol should be used rather than ASCII.
public
shouldUseBinaryProtocol() : bool