It would be great if someone could use Memcached as a cache in Flarum!

At present, Flarum has supported Redis as a cache. However, Redis is slower than Memcached, but it supports more types of storage. At the same time, Redis also supports persistence.

However, for forums with high speed requirements, it does not need so much, as long as the speed is faster, it will be better.

Therefore, it is urgent for Flarum to use Memcached as a cache extension.

Just like the Redis extension, it also requires PHP to install the Memcache plug-in to use it, but it can effectively speed up the site and reduce the server load. I hope some developers can make it and support the latest version.

    Chihiro Redis is slower than Memcached

    I think that is a misconception. Both are extremely fast, so even if memcache is slightly more efficient, it would not matter, because cache backend performance will probably be the last thing to worry about when comes to Flarum bottlenecks. Speed should not really by a factor when you need to decide between redis and memcache.

      rob006 But I prefer to use Memcached, although Redis is not much slower.

      Because Memcached can obviously make the forum look faster.

        Chihiro Because Memcached can obviously make the forum look faster.

        I doubt it. I think you're overestimating cache influence in Flarum in general - in default setup there are only few entries in cache, so different backend does not change that much. The main benefit of redis/memcached is that you can share cache between multiple instances, so it is useful if you have horizontal scaling. I would argue that with single server you would have best performance using default storage backend (file). And for multi-server setup differences between Memcached and Redis should be negligible, because network overhead will be main factor in terms of performance.

          rob006 Even so, I prefer to use Memcached to reduce the load of a single server.
          Because I have another server dedicated to running Memcached.

          18 days later

          Next time Chihiro stick to this discussion. If you want I can open bounties on this one, I don't think it's too hard to build a memcache extension as it simply wraps around an existing laravel cache driver. What needs to be build is admin settings and the cache store inject.

            luceos No, I can't make it.

            But I want to find someone to make it.

            Okay I'll open up pledges for this extension then. If you want faster results, you can open a request under the services tag so that developers can commission the extension for you, but you'll carry the full cost of the development. With Proposals it's like crowdfunding, developers might pick up the task once sufficient money has been pledged.

              luceos OK, thank you.

              I hope developers can help me develop.

              23 days later