I try to add a compiled object to Memcached that is regularly used. The compiled object does never change.
cache.set(eq, compile(eq, '<string>', 'eval'), 365*24*60*60)
But get the following error message:
Can't pickle < class 'code' >: attribute lookup code on builtins failed
Is there any solution to this problem or an alternative approach?