enhance yii app cache flush

this needs to be enhanced so that items may be stored as group and cleared from memcached as a group. running command yii::app->cache()->flush. clears all items in memcache which is not a good design. What happens if you have multiple applications using memcache?