note 94636 added to memcached.construct

From: Date: Mon, 16 Nov 2009 10:51:04 +0000
Subject: note 94636 added to memcached.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-162943@lists.php.net to get a copy of this message
Using multiple memcached instances with options in combination with persistent connections might be confusing: <?php $a = new Memcached('memcached_pool'); $a->setOption(Memcached::OPT_COMPRESSION, false); $b = new Memcached('memcached_pool'); $b->setOption(Memcached::OPT_COMPRESSION, true); $a->add('key', 'some data'); ?> You might think that connection $a will store everything uncompressed, but this is not the case. The persistent connection options are changed by the second object creation. ---- Server IP: 69.147.83.197 Probable Submitter: 83.232.96.217 ---- Manual Page -- http://www.php.net/manual/en/memcached.construct.php Edit -- https://master.php.net/note/edit/94636 Del: integrated -- https://master.php.net/note/delete/94636/integrated Del: useless -- https://master.php.net/note/delete/94636/useless Del: bad code -- https://master.php.net/note/delete/94636/bad+code Del: spam -- https://master.php.net/note/delete/94636/spam Del: non-english -- https://master.php.net/note/delete/94636/non-english Del: in docs -- https://master.php.net/note/delete/94636/in+docs Del: other reasons-- https://master.php.net/note/delete/94636 Reject -- https://master.php.net/note/reject/94636 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162943) next »