The memcached API expects string format, not unicode.
Convert the key passed to the memory cache to a string
before sending it to memcached. Since both the function
name and the id that form the key are ascii format, a
simple conversion from unicode to str is sufficient.
Reviewed: https:/ /review. openstack. org/27886 github. com/openstack/ nova/commit/ 37fbfad813e12d0 0da8f9d3e9f6f13 256d5bb7c1
Committed: http://
Submitter: Jenkins
Branch: master
commit 37fbfad813e12d0 0da8f9d3e9f6f13 256d5bb7c1
Author: Dan Florea <email address hidden>
Date: Tue Apr 30 21:02:18 2013 -0700
Convert the cache key from unicode to a string.
The memcached API expects string format, not unicode.
Convert the key passed to the memory cache to a string
before sending it to memcached. Since both the function
name and the id that form the key are ascii format, a
simple conversion from unicode to str is sufficient.
Change-Id: I9d15858ad4e10a a183444cccda9c3 3676059e55a
Fixes: bug #1174487