Opened 16 years ago

Closed 13 years ago

#6463 closed (wontfix)

Document that cmemcache has bug with floats (was: cache.get_many() returns garbage in case of floats (?) using memcached backend)

Reported by: panni@… Owned by: nobody
Component: Core (Cache system) Version: dev
Severity: Keywords: cache, memcached, get_many, wrong results
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Memcached backend (using cmemcache 0.91 and libmemcache 1.4.0.rc2):

"ck" key of cache has been set to INTEGER and "ckt" to time.time():

cd = cache.get_many([ck, ckt])
hits, timeout = cd[ck], cd[ckt]
    
print hits, timeout
    
hits = cache.get(ck)
timeout = cache.get(ckt)
    
print hits, timeout

Output:
2 GAÑæ±ò6X.
2 1201326024.84

Change History (5)

comment:1 by panni@…, 16 years ago

After some tests I found out that this bug doesn't happen when using python-memcached instead of cmemcache.

comment:2 by Simon Greenhill <dev@…>, 16 years ago

Resolution: invalid
Status: newclosed

Ok, so it's a cmemcache bug?

comment:3 by panni@…, 16 years ago

Yes, seems like.
I've added this one with a small (temporary) Documentation change in mind - the Docs should mention this, instead of only saying cmemcache is faster than python-memcached.

comment:4 by Simon Greenhill <dev@…>, 16 years ago

Resolution: invalid
Status: closedreopened
Summary: cache.get_many() returns garbage in case of floats (?) using memcached backendDocument that cmemcache has bug with floats (was: cache.get_many() returns garbage in case of floats (?) using memcached backend)
Triage Stage: UnreviewedAccepted

Ok. Updating the ticket to reflect this, thanks :)

comment:5 by otherjacob, 13 years ago

Resolution: wontfix
Status: reopenedclosed

cmemcache is currently deprecated, and being removed in 1.4

Note: See TracTickets for help on using tickets.
Back to Top