Skip to content

Commit 81e245b

Browse files
committed
minor #15052 [Cache] Remove compression option from Redis and Memcache (Nyholm)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- [Cache] Remove `compression` option from Redis and Memcache This option was removed in 4.4 because it didn't work. See symfony/symfony#34133 This will fix #15050 Commits ------- b11322c [Cache] Remove `compression` option from Redis and Memcache
2 parents 02ad362 + b11322c commit 81e245b

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

components/cache/adapters/memcached_adapter.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ option names and their respective values::
124124

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

146-
``compression`` (type: ``bool``, default: ``true``)
147-
Enables or disables payload compression, where item values longer than 100
148-
bytes are compressed during storage and decompressed during retrieval.
149-
150-
``compression_type`` (type: ``string``)
151-
Specifies the compression method used on value payloads. when the
152-
**compression** option is enabled.
153-
154-
Valid option values include ``fastlz`` and ``zlib``, with a default value
155-
that *varies based on flags used at compilation*.
156-
157145
``connect_timeout`` (type: ``int``, default: ``1000``)
158146
Specifies the timeout (in milliseconds) of socket connection operations when
159147
the ``no_block`` option is enabled.

components/cache/adapters/redis_adapter.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ array of ``key => value`` pairs representing option names and their respective v
131131

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

154-
``compression`` (type: ``bool``, default: ``true``)
155-
Enables or disables compression of items. This requires phpredis v4 or higher with
156-
LZF support enabled.
157-
158153
``lazy`` (type: ``bool``, default: ``false``)
159154
Enables or disables lazy connections to the backend. It's ``false`` by
160155
default when using this as a stand-alone component and ``true`` by default

0 commit comments

Comments
 (0)