Memcached: Class "Memcached" not found.

  • | 111 points


    I've installed laragon because I saw that it supports Memcached (for windows) but when I run it (memcached was on, I could access the stats page) laravel still gave me the error: Class "Memcached" not found.

    Some help would be nice.

  • administrators
    | 105377 points

    @NexPB: No worries.
    The problem is: Laravel supports only Memcached
    Developing PHP app with Memcached on Windows seems impossible because the PHP extension only support Memcache (note: without a d) on Windows

    However, Laragon solves the problem. Just put the code below to where you feel convenient and it should work (Tested)

    if (!class_exists('Memcached')) {
        include ("memcached.php");

    For more details:

  • | 111 points

    @leokhoa Thanks for the answer, altho I've just decided to use redis instead (for my local development env).

    After a lot of googling I found out memcached is not supported very well on windows if at all.

  • administrators
    | 105377 points

    @NexPB : Good decision! Redis is far better than Memcached and is still very fast.

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.