3
Wack
8y

!rant, so I'm trying to decide on what caching system I should use. It's for a PHP app, using Symfony as framework, tlgether with Doctrine for DB. The caches in Question are memcached, APCu or redis.

The goal: speed shit up.

The app currently uses Symfony 2.8 and is hosted on a single server (so no distributed system is needed). I'd currently opt for APCu, but more since it's not distributed, there won't be an overhead from that. A nice thing about memcached would be the abillity to store user seeions, even if we would decide to have multiple servers in the future.

What would you reccomend and why?

Comments
  • 1
    For any new app I would use Redis. Great built in commands and much more flexible than memcache.
  • 0
    @dfox how is redis when it comes to resources? Is it hungry or lightweight?
  • 2
    @pascalwacker pretty lightweight. Not as light as memcache but I think the additional functionality you get makes it absolutely worth it.

    We run Redis on a very small server and haven't had any issues. We don't use it for a ton of stuff but it's been going for months and never fails.
Add Comment