Laravel 5 在文件驱动程序上缓存标签
Laravel 5 cache tags on file drivers
laravel 5 是否支持文件驱动程序上的缓存标签?
我正在尝试为您缓存标签,但出现以下错误
call_user_func_array() expects parameter 1 to be a valid callback,
class 'Illuminate\Cache\FileStore' does not have a method 'tags'
这个方法我试过
Cache::tags('family')->put('wife','Umme Mufeez',10);
Cache::tags('family')->put('Kid','Mufeez', 10);
Cache::tags('family')->put('husband','Abu Mufeez', 10);
Laravel 文件驱动不支持缓存标签。
在the docs中写得很清楚:
Note: Cache tags are not supported when using the file
or database
cache drivers.
laravel 5 是否支持文件驱动程序上的缓存标签?
我正在尝试为您缓存标签,但出现以下错误
call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Cache\FileStore' does not have a method 'tags'
这个方法我试过
Cache::tags('family')->put('wife','Umme Mufeez',10);
Cache::tags('family')->put('Kid','Mufeez', 10);
Cache::tags('family')->put('husband','Abu Mufeez', 10);
Laravel 文件驱动不支持缓存标签。
在the docs中写得很清楚:
Note: Cache tags are not supported when using the
file
ordatabase
cache drivers.