In Drupal 7, we used to be able to do this:
cache_clear_all('state:', 'cache', TRUE)
which would delete any cache bin entires that started with the string
state: (matching cache IDs such as
The change record at https://www.drupal.org/node/1272696 even notes this use case in the Drupal 7 example, but does not actually provide an example of how to replicate it in D8.
It seems that we're supposed to use cache tags, which seems like a more more expensive conversion considering the simple use case. I don't see any matching methods that would apply in CacheBackendInterface. Note, this is not about deleting all items in a cache bin, which is clearly covered by deleteAll().