Tags are a way to categorize cache records. When you save a cache with the
save() method, you can set an array of tags to apply for this
record. Then you will be able to clean all cache records tagged with a given tag (or
tags):
<?php
$cache->save($huge_data, 'myUniqueID', array('tagA', 'tagB', 'tagC'));
Note
note than the save() method accepts an optional fourth
argument: $specificLifetime (if != FALSE,
it sets a specific lifetime for this particular cache record)




