Hello I want to integrate the invalidation of cache of symfony but this one does not delete the cache I use memcached

In the repository I add the tags

```
$query = $this->getEntityManager()->createQuery($sql)->setParameters($params);

$cacheData = $cache->getItem(md5(serialize($query->getParameters())).$page);

if (!$cacheData->isHit()) {
$result = $query->setFirstResult(($page-1) * $maxPerPage)->setMaxResults($maxPerPage)
->useResultCache(true, 3000, md5(serialize($query->getParameters())).$page )
->useQueryCache(true)
->getResult();

$cacheData->set($result);

$cache->save($cacheData);
$cacheData->tag(['media', 'media_' . $category]);
} else {
$result = $cacheData->get();
}

```

When I add a data I empty the cache as if below but it does not empty

```
$cache = new TagAwareAdapter($this->get('cache.app'));
$cache->invalidateTags(['media']);

```