There is such a list of dictionaries:
[{'insp': 4816}, {'insp': 3252}, {'insp': 7107}, {'insp': 5948}, {'insp': 5257}, {'insp': 5916}, { 'insp': 1673}, {'insp': 5503}, {'insp': 6030}, {'insp': 6439}, {'insp': 7151}, {'insp': 2411}, {'insp ': 2208}, {' insp ': 5010}, {' insp ': 9978}, {' insp ': 5613}, {' insp ': 2634}, {' insp ': 2308}, {' insp ': 4711}, {'insp': 5050}, {'insp': 7721}]
I need to competently translate it into a string, then to serialize it for memcached . How to do it ? And then how to deserialize it?
I tried str(mylist) , but in the end, after deserializing with the pymemcache library, I get a string that contains a lot of unnecessary characters, such as b and \ ...
client.set()without additional manipulations and easily return it viaclient.get()... :( - faoxis