Hi Brian.

I have checked php manual for Memcahced::append. it only works to append 
string. Why not for array? i means, i am looking append my some data as 
array into main data array like:

$this->m = new Memcached();
$this->m->addServer('localhost', 11211);
$this->m->setOption(Memcached::OPT_COMPRESSION, false); 

$MainArray = array( array('1'=>'A','2'=>'B'), array('3'=>'C','4'=>'D') );

$this->m->set('foo', $MainArray);

$dataToAppend = array('5'=>'E','6'=>'F','7'=>'G','8'=>'H');

$this->m->append('foo',$dataToAppend);

var_dupm($this->m->get('foo'));

// only showing main data

How can i get this?

Please help.







On Saturday, May 8, 2010 12:27:40 AM UTC+5:30, brianlmoon wrote:
>
> There is no append method in PECL/Memcache. You will have to use 
> PECL/Memcached for that. 
>
>
> Brian. 
> -------- 
> http://brian.moonspot.net/ 
>
> On 5/7/10 1:24 PM, IsaacMyPHPHero wrote: 
> > I looked all over for answers to this, and I am afraid to report it as 
> > a bug because I suspect my system/configuration may be to blame. 
> > 
> > Problem: When I try using Memcache::apend(), I get the following 
> > error... "Fatal error: Call to undefined method Memcache::append() in 
> > C:\wamp\www\***\apps\session\session_cache.functions.php on line 49." 
> > I know what this means, but if the append() method exists within 
> > Memcached, why is this happening? 
> > 
> > System: Windows 32 (for development only) 
> > Memcache: 
> > memcache support enabled 
> > Active persistent connections  1 
> > Version  2.2.4-dev 
> > Revision  $Revision: 1.99 $ 
> > 
> > Directive Local Value Master Value 
> > memcache.allow_failover 1 1 
> > memcache.chunk_size 8192 8192 
> > memcache.default_port 11211 11211 
> > memcache.hash_function crc32 crc32 
> > memcache.hash_strategy standard standard 
> > memcache.max_failover_attempts 20 20 
> > 
> > 
> > Please help :) 
> > 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to