Reputation: 295
Will laravel 5 support cache tags on file drivers ?
I am trying to you cache tags but i am getting following error
call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Cache\FileStore' does not have a method 'tags'
I have tried in this way
Cache::tags('family')->put('wife','Umme Mufeez',10);
Cache::tags('family')->put('Kid','Mufeez', 10);
Cache::tags('family')->put('husband','Abu Mufeez', 10);
Upvotes: 2
Views: 1535
Reputation: 220176
Laravel does not support cache tags in the file driver.
It clearly states it in the docs:
Note: Cache tags are not supported when using the
file
ordatabase
cache drivers.
Upvotes: 6