To fix this error make sure you have latest php5-apcu installed:
sudo apt-get install php5-apcu
edit config.php
sudo vi /nextcloud/config/config.php
add the following line in your directive
'memcache.local' => '\OC\Memcache\APCu',
sudo service nginx restart