# Memory cache for shared hosting

**URL:** <https://help.nextcloud.com/t/memory-cache-for-shared-hosting/2126>\
**Category:** ℹ️ Support\
**Tags:** opcache\
**Created:** [August 3, 2016, 12:13pm UTC](https://help.nextcloud.com/t/memory-cache-for-shared-hosting/2126 "2016-08-03T12:13:08Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![TP75](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tp75/32/12565_2.png) [@TP75](https://help.nextcloud.com/u/TP75)\
**Post date:** [October 25, 2019, 3:21pm UTC](https://help.nextcloud.com/t/memory-cache-for-shared-hosting/2126/14 "2019-10-25T15:21:05Z")

</div>

For the benefit of the discussion and of the general public:

- [Server-Tuning 4: OPcache, APCu, memcache, memcached](https://timreeves.de/internet-technologie/server-tuning-4-opcache-apcu-memcache-memcached/)
- [Redis vs APCu 2018](https://www.it-cooking.com/technology/productivity/redis-vs-apcu-2018/)

Ref [NC 16 Docs » Nextcloud configuration » Memory caching](https://docs.nextcloud.com/server/16/admin_manual/configuration_server/caching_configuration.html)

> Nextcloud supports multiple memory caching backends, so you can choose the type of memcache that best fits your needs. The supported caching backends are:
> 
> - [APCu](https://pecl.php.net/package/APCu), APCu 4.0.6 and up required.  
> A local cache for systems.
> 
> - [Redis](http://redis.io/), PHP module 2.2.6 and up required.  
> For local and distributed caching as well as transactional file locking.
> 
> - [Memcached](http://www.memcached.org/)  
> For distributed caching.
> 
> Memcaches must be explicitly configured in Nextcloud by installing and enabling your desired cache, and then adding the appropriate entry to `config.php`  
> […]

> Note: […] Nextcloud supports only the **memcached** PHP module.

Hope this helps.

---

_[View the full topic](https://help.nextcloud.com/t/memory-cache-for-shared-hosting/2126)._
