Skip to content
Snippets Groups Projects
Commit 5eaf7059 authored by catch's avatar catch
Browse files

Issue #2538956 by HeyLodyM, Wim Leers: Document that...

Issue #2538956 by HeyLodyM, Wim Leers: Document that MemoryBackend::prepareItem()/::set() uses unserialize()/serialize() to break references
parent c439ede6
No related branches found
No related tags found
Loading
......@@ -10,6 +10,11 @@
* Should be used for unit tests and specialist use-cases only, does not
* store cached items between requests.
*
* The functions ::prepareItem()/::set() use unserialize()/serialize(). It
* behaves as an external cache backend to avoid changing the cached data by
* reference. In ::prepareItem(), the object is not modified by the call to
* unserialize() because we make a clone of it.
*
* @ingroup cache
*/
class MemoryBackend implements CacheBackendInterface, CacheTagsInvalidatorInterface {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment