laravel memcached使用

当第一次使用cache时,想用 memcached 的方式,但是它直接报错:

说明你的php没安装 memcached 这个扩展,在ubuntu下直接 sudo apt-get install memcached 就可以了 (http://uixor.iteye.com/blog/1103014)

再重启下apache2.

不行的话再输入:sudo apt-get install php5-memcached,不要输成了 php5-memcache

可以看出reids可能需要先安装好才可以使用。

原文地址:https://www.cnblogs.com/linguoguo/p/4341283.html