'Can I use Elasticache Memcached to store the events which the value has JSON object in key-value pair

I'm trying to push the events into the cache. The events contain a key-value pair. The key is a string and "Value" is a JSON object. Can I use memcached for this(I have read somewhere that in memcached we can use only strings, but here I'm using a JSON object as value). Please help me.

Thanks in advance



Solution 1:[1]

You would need to serialize the JSON object to a text string before storing it with Memcached

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 dlibian