From 5335eabae880788d4be35dc8a81599bd3ac2af62 Mon Sep 17 00:00:00 2001 From: mohamed gasmi Date: Thu, 11 Aug 2022 00:01:29 +0200 Subject: [PATCH] [Cache] Add marshaller Add marshaller constructor argument. --- components/cache/adapters/apcu_adapter.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/cache/adapters/apcu_adapter.rst b/components/cache/adapters/apcu_adapter.rst index 17ecd4058e6..17cef4f6097 100644 --- a/components/cache/adapters/apcu_adapter.rst +++ b/components/cache/adapters/apcu_adapter.rst @@ -17,7 +17,7 @@ memory, a component appreciably faster than many others, such as the filesystem. this adapter. The ApcuAdapter can optionally be provided a namespace, default cache lifetime, -and cache items version string as constructor arguments:: +cache items version string and marshaller as constructor arguments:: use Symfony\Component\Cache\Adapter\ApcuAdapter; @@ -33,7 +33,10 @@ and cache items version string as constructor arguments:: // when set, all keys prefixed by $namespace can be invalidated by changing // this $version string - $version = null + $version = null, + + // marshaller (classe which implement MarshallerInterface) to process the cache items before storing them + $marshaller = null ); .. caution::