# Configuring Memcache or Redis in local.php?

**URL:** <https://forum.mautic.org/t/configuring-memcache-or-redis-in-local-php/27267>\
**Category:** Product Support\
**Created:** [March 6, 2023, 10:31am UTC](https://forum.mautic.org/t/configuring-memcache-or-redis-in-local-php/27267 "2023-03-06T10:31:39Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [March 6, 2023, 10:31am UTC](https://forum.mautic.org/t/configuring-memcache-or-redis-in-local-php/27267/1 "2023-03-06T10:31:39Z")

</div>

I have seen a number of posts on the forum around the topic of how to install and configure Redis or Memcache with Mautic. Alas there is not one person that has put the solution. Also the documentation in Mautic docs seems super outdated and not explanatory at all: [Mautic Developer Documentation](https://developer.mautic.org/#delivered-adapters)

Some background of what I have done, yet I am unclear if it is working as I think my syntax is incorrect in local.php file (but it is not breaking it) - all done with the help of Google & chatGPT.

I am running on ubuntu 20.04 and did the following:  
Installed memcach and php module:  
sudo apt-get install memcached  
sudo apt-get install php-memcached  
restarted php7.4-fpm service  
added the following to my local.php

```auto
'cache' => array(
    'default' => array(
        'driver' => 'memcached',
        'options' => array(
            'servers' => array(
                array(
                    'host' => '127.0.0.1',
                    'port' => 11211,
                    'weight' => 100
                )
            )
        )
    )

```

Saved and exited.

However when I telnet into memcache server and check stats items I am not seeing anything being cached there…

```auto
telnet 127.0.0.1 11211
stats item

```

I I am not getting anything in response.

My hunch is my configuration in local.php is incorrect.

So anyone ever done this ?

Sorry have to tag you @silavapi 🙂

---

_[View the full topic](https://forum.mautic.org/t/configuring-memcache-or-redis-in-local-php/27267)._
