|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-01-04 03:39 UTC] huaxingqian at gmail dot com
Description:
------------
memcache version 3.0.3 and memcached version 1.3.2.
How can I use UDP for 'set'.
How can I just use 'udp' connect memcached.
Reproduce code:
---------------
$memcache = new MemcachePool;
$memcache->connect('192.168.0.169', 0, 11223);
$mem_key = 'test_package';
$memcache->set($mem_key, 'sajkdghlghasldghsalghaslgh');
$re = $memcache->get($mem_key);
var_dump($re);
Expected result:
----------------
Warning: MemcachePool::connect() [memcachepool.connect]: Can't connect to 192.168.0.169:0, Failed to parse address "192.168.0.169" (0) in /data/local/apache2/htdocs/test.php on line 6
bool(false)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
$b = new MemcachePool; $startTime = microtime(true); $b->connect("udp://127.0.0.1",16222); $d = $b->get("testKey"); var_dump($d); ==================== the result is false and some error SERVER_ERROR multi-packet request not supported what problem?