ChristophAust's avatar

Cache tagging not working properly in lumen?

Hi there, I am trying to implement memcached cache-tags in Lumen. I add an item with two tags but it is callable only from the first tag. Am I doing something wrong here?

>>> Cache::tags('people', 'artists')->put('Anne', 'Anne Wilkins', 5);
=> null
>>> Cache::tags('people')->get('Anne');
=> "Anne Wilkins"
>>> Cache::tags('artists')->get('Anne');
=> null
0 likes
2 replies
ChristophAust's avatar

I think I had a typo, but still this functionality works not like expected. From what I saw the tags should have been given like this:

>>> Cache::tags(['people', 'artists'])->put('Anne', 'Anne Wilkins', 5);

Still I can only call the value by "people". Does nobody work with tags here?

Please or to participate in this conversation.