protected function persistCollection($collection)
    {
        $cache = new FilesystemAdapter($this->namespace);
        $item = $cache->getItem('collection');
        $item->set($collection);
        $cache->save($item);
    }
protected function persistCollection($collection)
    {
        $cache = new FilesystemAdapter($this->namespace);
        $item = $cache->getItem('collection');
        $item->set($collection);
        $cache->save($item);
    }
protected function persistCollection ( $ collection ) { $ cache = new FilesystemAdapter ( $ this -> namespace ) ; $ item = $ cache -> getItem ( 'collection' ) ; $ item -> set ( $ collection ) ; $ cache -> save ( $ item ) ; }
Persist collection values to a temporary storage
key is the command string value

@param $collection
Persist collection values to a temporary storage key is the command string value