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
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
Please register or to comment