I am fiddling a bit with drupal 8 cache. Looking at cache_page table and there is clearly a value with CID i am trying to fetch. I try this.

if ($item = \Drupal::cache()->get($cid)) {

and keep getting nothing for that CID, when I try some CID from cache_default. I get it without problem. So I am wondering how to get values from other tables?


Provide the cache bin page, otherwise it defaults to default:

  • Of course. :) It was late in the evening and I knew there must be something like that, but didn't find any parameters in get function. – Marko Blazekovic Nov 19 '18 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.