Yes, you should definitely use object caching for your webserver…especially for dynamic page generation. It speeds things up incredibly and can do wonders for page speed performance.
Redis and memcache are more or less interchangeable. Redis is considered the newer/faster option but real world performance hasn’t always reflected that sentiment. I naturally would try Redis first and see if it’s super fast, no weird issues. If Redis isn’t totally smooth, go straight to memcache. (Or for a totally hassle-free option, just go memcache first.) And then if you want to venture further, go with APCu. APCu is faster than both Redis/memcache but can be unstable or total memory-hog.
My advice is to try all of them and test your site for yourself. Afterwards, simply delete the ones you don’t need. You can install these modules easily…just make sure you use a version that’s supported by whatever application you’re using.
The big three in the world of object-caching:
- Redis – fast but might not be supported everywhere. Possibly the fastest/best option if you can get it to work.
- Memcache – the old (but very stable standard). Most people who haven’t played with Redis yet will go with this. I love it.
- APCu – very fast because it doesn’t write anything to the disk, simply stores it as is. Can cause problems or performance-loss in certain environments (clusters, server restarts, low memory, etc). FYI: some people say APCu is outdated and that you shouldn’t use it.
Some old ones:
- APC – abandoned and now succeeded by APCu (which supports php 7.x).
- XCache – abandoned.