Some apparantly successfully stored values are not stored?

Thomas Keil tkeil at datacrystal.de
Tue Jul 10 15:42:28 UTC 2007


Hi everyone,

I have a weird problem and hope someone can help me.

I use memcached-1.2.2 and pecl-memcache-2.1.0.
I tried several different versions of both.

What I'm doing in my webapp is to store some arrays with memcached's
Storing works, I get no error messages. Immediately, thus right after
storing, getting the value returns the stored value correctly.
The next request of that page, thus after dis-/reconnecting, some values
are hits, some are misses.
The misses are always the same values.

After several requests, the status is like this:

    [pid] => 2828
    [uptime] => 761
    [time] => 1184081906
    [version] => 1.2.2
    [pointer_size] => 32
    [rusage_user] => 0.086986
    [rusage_system] => 0.143978
    [curr_items] => 428
    [total_items] => 3326
    [bytes] => 365813
    [curr_connections] => 1
    [total_connections] => 78
    [connection_structures] => 8
    [cmd_get] => 6195
    [cmd_set] => 3326
    [get_hits] => 2869
    [get_misses] => 3326
    [evictions] => 0
    [bytes_read] => 2916127
    [bytes_written] => 3579537
    [limit_maxbytes] => 2147483648
    [threads] => 4

"evictions" is 0, so I'm of the impression that nothing has been deleted
from the cache, still the values can't be found.

What am I doing wrong?
What information can I provide you with to make some debugging possible?

Thanks
Thomas


More information about the memcached mailing list