File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,14 @@ and to ``unmarshall()``.
202
202
203
203
The :class: `Symfony\\ Component\\ Cache\\ Marshaller\\ DefaultMarshaller ` is using PHP's
204
204
``serialize() `` or ``igbinary_serialize() `` if the Igbinary extension is installed.
205
- There are other marshallers that will encrypt or compress the data before storing it.
205
+ There are other marshallers that will encrypt or compress the data before storing it::
206
+
207
+ use Symfony\Component\Cache\Adapter\RedisAdapter;
208
+ use Symfony\Component\Cache\DefaultMarshaller;
209
+ use Symfony\Component\Cache\DeflateMarshaller;
210
+
211
+ $marshaller = new DeflateMarshaller(new DefaultMarshaller());
212
+ $cache = new RedisAdapter(new \Redis(), 'namespace', 0, $marshaller);
206
213
207
214
Advanced Usage
208
215
--------------
You can’t perform that action at this time.
0 commit comments