Search code examples
cachingredismemcachedamazon-elasticache

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

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