Hi, all

 I am using memcache in my project, but, it cann't good work for the
delete key.

 My memcache server information:

stats
STAT pid 18802
STAT uptime 206534
STAT time 1244434171
STAT version 1.4.0-rc1
STAT pointer_size 32
STAT rusage_user 99.508872
STAT rusage_system 342.615914
STAT curr_connections 39
STAT total_connections 1555578
STAT connection_structures 239
STAT cmd_get 3665652
STAT cmd_set 350295
STAT cmd_flush 0
STAT get_hits 1321595
STAT get_misses 2344057
STAT delete_misses 5515
STAT delete_hits 3778
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT bytes_read 1005746852
STAT bytes_written 2592604041
STAT limit_maxbytes 2097152000
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT threads 5
STAT bytes 21326904
STAT curr_items 25256
STAT total_items 350295
STAT evictions 0
END

When I run it on the console:
delete nbbs_592422069ea896e84b43379d48a1ba53
DELETED

My code:

    protected function delete($key, $timeout = 0){
        $key = $this->prefix."_".md5($key);
        if($this->mCached->delete($key,$timeout)){
            return true;
        }
        $this->setError('memcache del false key='.$key);
        return false;
    }

The error log information:

memcache del false key=nbbs_114316e3a86a6ff0df518ba1a993c9a5,

Please help. Thank you!


Best wishes!

dong.yang
2009-06-08

Reply via email to