note 130032 added to memcached.setmulti
| From: | robin@zombiemongoose.com | Date: | Sun, 16 Feb 2025 22:07:44 +0000 |
| Subject: | note 130032 added to memcached.setmulti | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221856@lists.php.net to get a copy of this message | ||
As of Feb 2025 Memcached::setMulti still iterates the collection internally and calls memcached_set
or memcached_set_by_key rather than the underlying setmulti method, which is only supported in the
binary protocol.
As noted by jooonic, performance is unlikely to be much better than iterating yourself in PHP.
https://github.com/php-memcached-dev/php-memcached/blob/80cb21467a1db6b7b18725df586f11801c823695/php_memcached.c#L1219
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 2a02:8084:255a:b880:90a6:9696:c32:eb04)
----
Manual Page -- https://php.net/manual/en/memcached.setmulti.php
Edit -- https://main.php.net/note/edit/130032
Del: integrated -- https://main.php.net/note/delete/130032/integrated
Del: useless -- https://main.php.net/note/delete/130032/useless
Del: bad code -- https://main.php.net/note/delete/130032/bad+code
Del: spam -- https://main.php.net/note/delete/130032/spam
Del: non-english -- https://main.php.net/note/delete/130032/non-english
Del: in docs -- https://main.php.net/note/delete/130032/in+docs
Del: other reasons-- https://main.php.net/note/delete/130032
Reject -- https://main.php.net/note/reject/130032
Search -- https://main.php.net/manage/user-notes.php