You're right. Memcache does not support tags.
You can use a different key value to implement the tag for memcache.
EX:
$this->objCache->save($arrResults, $strKey,array($strMyTag),$intCacheTime)
About the setTag and MemcacheTag method:
function setTag($strKey,$strTag){ $arrKey = $cacheOjb->get($strTag); $arrKey[]= $strKey; } function deleteCacheWithTag($strTag){ $arrKey = $cacheOjb->get($strTag); foreach ($arrKey as $strKey){ $objCache->delete($strKey); } }
This work is pretty simple and works for my projects.
* Note: these codes need modification; sorry for posting in a hurry
source share