1
1
1serfer2014-01-01 18:48:04
MongoDB
1serfer, 2014-01-01 18:48:04

What is better to choose for caching: files, redis, mongodb, memcache?

What is the best choice for caching site pages?
Caching to file or: Redis, MongoDB, Memcache?
Initial data: Dedik, PHP, MySQL
I read that the file will be faster, as long as everything is limited to one server.
However, if there are a lot of folders and files on one server, will this affect the server's performance?
Or is it still better to use NoSQL solutions for this? Then what is better for the original data?
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Y
Yuri Shikanov, 2014-01-01
@1serfer

Memcached will be the fastest.

1
1serfer, 2014-01-02
@1serfer

Thanks everyone.
Of course, I got excited with MongoDB)
I read that some people use it for cache.
This is more likely due to a lack of knowledge in this area.
And also, who else in the head (like me) has a little confusion in the field of application of NoSQL solutions, here is a small article:
kkovacs.eu/cassandra-vs-mongodb-vs-couchdb-vs-redis

A
afiskon, 2014-01-02
@afiskon

Better immediately Riak . It's like Memcached or Redis, only with automatic replication and resharding when new nodes are added. It can be either in-memory or persistent. Perhaps, after some time, you will want to use it not only as a cache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question