if there is a set of php memcache when you try to do to get such a key from python get:
>>> import sys; print('%s %s' % (sys.executable or sys.platform, sys.version))
/usr/bin/python2.6 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5]
>>> import memcache
>>> import binascii
>>> m=memcache.Client(['127.0.0.1:11211'], debug=0)
>>> def php_hash(key):
... return (binascii.crc32(key) >> 16) & 0x7fff
...
>>> m.get((php_hash(mfd.php_nexttime), mfd.php_nexttime))
Traceback (most recent call last):
File ", line 1, in NameError: name 'mfd' is not defined
>>> m.get((php_hash('mfd.php_nexttime'), 'mfd.php_nexttime'))
Traceback (most recent call last):
File ", line 1, in File "/usr/lib/pymodules/python2.6/memcache.py", line 779, in get
return self._get('get', key)
File "/usr/lib/pymodules/python2.6/memcache.py", line 766, in _get
value = self._recv_value(server, flags, rlen)
File "/usr/lib/pymodules/python2.6/memcache.py", line 915, in _recv_value
return val
UnboundLocalError: local variable 'val' referenced before assignment
Tired of googling can anyone faced?