Skip to content

[Cache] Remove compression option from Redis and Memcache #15052

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions components/cache/adapters/memcached_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ option names and their respective values::

// associative array of configuration options
[
'compression' => true,
'libketama_compatible' => true,
'serializer' => 'igbinary',
]
Expand All @@ -143,17 +142,6 @@ Available Options
server(s). Any action that retrieves data, quits the connection, or closes
down the connection will cause the buffer to be committed.

``compression`` (type: ``bool``, default: ``true``)
Enables or disables payload compression, where item values longer than 100
bytes are compressed during storage and decompressed during retrieval.

``compression_type`` (type: ``string``)
Specifies the compression method used on value payloads. when the
**compression** option is enabled.

Valid option values include ``fastlz`` and ``zlib``, with a default value
that *varies based on flags used at compilation*.

``connect_timeout`` (type: ``int``, default: ``1000``)
Specifies the timeout (in milliseconds) of socket connection operations when
the ``no_block`` option is enabled.
Expand Down
5 changes: 0 additions & 5 deletions components/cache/adapters/redis_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ array of ``key => value`` pairs representing option names and their respective v

// associative array of configuration options
[
'compression' => true,
'lazy' => false,
'persistent' => 0,
'persistent_id' => null,
Expand All @@ -151,10 +150,6 @@ Available Options
If none is specified, it will return ``\Redis`` if the ``redis`` extension is
available, and ``\Predis\Client`` otherwise.

``compression`` (type: ``bool``, default: ``true``)
Enables or disables compression of items. This requires phpredis v4 or higher with
LZF support enabled.

``lazy`` (type: ``bool``, default: ``false``)
Enables or disables lazy connections to the backend. It's ``false`` by
default when using this as a stand-alone component and ``true`` by default
Expand Down