FYI: after I had accidentally added binary data to the key value, I discovered that the value passed to get() and set() are allowed to contain data that can trigger a fatal error (memcache timeout after X seconds). This only affects the running PHP script.
See this short example below.
$data = [];
$key = "test\x0a";
$test = $m->get( $key );
$m->set( $key, $data, 300 );
Interestingly, it does not happen if the get() is commented out. It has to be get() first before set() hangs.
FYI: after I had accidentally added binary data to the key value, I discovered that the value passed to get() and set() are allowed to contain data that can trigger a fatal error (memcache timeout after X seconds). This only affects the running PHP script.
See this short example below.
Interestingly, it does not happen if the get() is commented out. It has to be get() first before set() hangs.