src/GridFS/Repository.php
public function cacheObject($object)
    {
        if (is_object($object)) {
            $unhyd = $this->hydrator->unhydrate($object);
            unset($unhyd["stream"]);
            $this->objectCache->save(spl_object_hash($object), $unhyd);
        }
    }
public function cacheObject($object)
    {
        if (is_object($object)) {
            $unhyd = $this->hydrator->unhydrate($object);
            unset($unhyd["stream"]);
            $this->objectCache->save(spl_object_hash($object), $unhyd);
        }
    }
public function cacheObject ( $ object ) { if ( is_object ( $ object ) ) { $ unhyd = $ this -> hydrator -> unhydrate ( $ object ) ; unset ( $ unhyd [ "stream" ] ) ; $ this -> objectCache -> save ( spl_object_hash ( $ object ) , $ unhyd ) ; } }
Store object in cache to see changes

@param   object  $object Object to cache
@return  void
Store object in cache to see changes