‘filelocking.enabled’ => true,
‘memcache.locking’ => ‘\OC\Memcache\APCu’,
Does it make sense to use APCu for filelocking? Documentation only mentions redis for that purpose.
‘filelocking.enabled’ => true,
‘memcache.locking’ => ‘\OC\Memcache\APCu’,
Does it make sense to use APCu for filelocking? Documentation only mentions redis for that purpose.
use both
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘filelocking.enabled’ => ‘true’,
‘redis’ =>
array (
‘host’ => ‘/var/run/redis/redis.sock’,
‘port’ => 0,
‘timeout’ => 0.0,
),
Yes that is mentioned in the documentation. But it also says
Additional notes for Redis vs. APCu on memory caching
APCu is faster at local caching than Redis. If you have enough memory, use APCu for Memory Caching and Redis for File Locking. If you are low on memory, use Redis for both.
Why not use APCu for both? Is it slower than Redis for Locking?
to be honest, if your nextcloud server is a soho or less than 10 users at same time, the cache option is not very important. were talking ms.
Also, it depends on your hardware. the more ram you get, the better it will be serve by redis.
Also, people think redis is just a cache, but it is much more !
Redis is an open-source in-memory data structure store used as a database, cache, and message broker. It supports data structures such as strings, hashes, lists, sets, and sorted sets with range queries, bitmaps, hyperloglogs, and geospatial indexes with radius queries. ( what a nice cut and past , yeah !! )
The advantage of redis are mainly:
Thanks for the explanation. I will stick with redis.