I am using Laravel 5.2 cache with memcached driver.
tried to implement Cache :: tags in my project but it doesn't seem to work.
But it works well when I use
Cache::put('user_1', $user, 600);
Here is my code
Cache::tags('user')->put('user_1', $user, 600);
and I tried to use
Cache::tags(['user'])->put('user_1', $user, 600);
as mentioned in the API docs that said the array is supported | mixed $ names
Not sure if anyone has a similar problem like me?
source
share