protected function _createData(callable $func): array
    {
        $data = \call_user_func($func);
        if(!\is_array($data) && !$data instanceof \Traversable) {
            return []; //ignore invalid results
        }
        $return = [];
        foreach($data as $key => $value) {
            $return[$key] = [
                'value' => $value,
                'expires' => null
            ];
        }
        return $return;
    }
protected function _createData(callable $func): array
    {
        $data = \call_user_func($func);
        if(!\is_array($data) && !$data instanceof \Traversable) {
            return []; //ignore invalid results
        }
        $return = [];
        foreach($data as $key => $value) {
            $return[$key] = [
                'value' => $value,
                'expires' => null
            ];
        }
        return $return;
    }
protected function _createData ( callable $ func ) : array { $ data = \ call_user_func ( $ func ) ; if ( ! \ is_array ( $ data ) && ! $ data instanceof \ Traversable ) { return [ ] ; //ignore invalid results } $ return = [ ] ; foreach ( $ data as $ key => $ value ) { $ return [ $ key ] = [ 'value' => $ value , 'expires' => null ] ; } return $ return ; }
Calls the creator function of the items of new cache pools and transforms
it into our internal used structure.

@param callable $func
The creator function
@return array
The data
Calls the creator function of the items of new cache pools and transforms it into our internal used structure .