Which is faster and better for caching, File System cache or Redis or Memcached?

Mihai B.

Well-known member
Joined
Apr 19, 2016
Messages
191
Best answers
0
Ratings
17
Points
18
#1
I am going to use File System cache or Memcached or Redis for my websites but not sure which is faster and better for caching. Can anyone tell me which one should I go with?
 
Joined
Apr 18, 2017
Messages
47
Best answers
1
Ratings
14 1
Points
8
#3
Hi, @Mihai B.! Sometimes, especially for dynamic DB-driven websites, it's obviously good to use Memcached. Keep in mind that Memcached is a back-end caching server. There is also Varnish which is, probably, more popular web caching server and it is a front-end one. Varnish has a lot of configuration options. Then while comparing Memcached which limits key names to 250 bytes and works with plain strings only with Redis which allows key names and values to be as large as 512MB each, I suppose, Redis will be the most universal fitting for speeding-up your websites. Check it out, I hope it will the best solution in your case!
 

bountysite

Corporate Member
Corporate Member
Joined
Oct 11, 2017
Messages
109
Best answers
1
Ratings
49
Points
28
#4
Redis supports more data types than just simple key value as in memcache.

But talking about file system cache, you are talking varnish, which is built specifically for this.
You can also use tmpfs, to store data directly in volatile memory, for performance. But the downfall of having to put data on every reboot.
 

Localnode

Moderator
Staff Member
Joined
Dec 15, 2015
Messages
311
Best answers
1
Ratings
108 2
Points
43
#5
Personally, I'll amend my former post with this:
Redis and PHP_FPM.
I've not tested others, but having Redis and PHP_FPM setup managed to get my test development to under 1 second from certain places.

YMMV, for me it works a treat. Others will have their own opinion.
LSCache, Redis, Opcache, Memcached, PHP_FPM. Redis is usually around the same popularity as LSCache. Others say Varnish.
Then you get into the whole web server thing, NGINX, Apache, Litespeed.

What kind of website are you talking about caching? Is it a static website? Wordpress? Drupal? Any sort of CMS?
 
Latest Threads
  • Deleted
  • Deleted by fwh
Replies
0
Views
4
Replies
0
Views
32
Recommended Threads
Replies
15
Views
4,340
Replies
3
Views
1,141
Replies
2
Views
1,094
Replies
2
Views
1,355

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top