# cacheMergedPodDefinition method

1. @protected

void cacheMergedPodDefinition(

1. RootPodDefinition root,
2. String name

)

Caches a merged pod definition for a given pod name.

This method is used to cache a merged pod definition for a given pod name to prevent duplicate merging and improve performance.

`root` the root pod definition to cache `name` the name of the pod to cache

## Implementation

    @protected
    void cacheMergedPodDefinition(RootPodDefinition root, String name) {
    		_mergedPodDefinitions[name] = RootPodDefinition.from(root);
    	}