Can we use MongoDB as a replacement of Memory Caching library (memcache and memcached).?

and what are the deference in MongoDB and Memory Caching Library.

Edit
Report