public function refresh(Aggregate $entity)
    {
        $this->cache[$entity->getEntityKeyValue()] = $this->transform($entity);
    }
public function refresh(Aggregate $entity)
    {
        $this->cache[$entity->getEntityKeyValue()] = $this->transform($entity);
    }
public function refresh ( Aggregate $ entity ) { $ this -> cache [ $ entity -> getEntityKeyValue ( ) ] = $ this -> transform ( $ entity ) ; }
Refresh the cache record for an aggregated entity after a write operation.

@param Aggregate $entity
Refresh the cache record for an aggregated entity after a write operation .