{
    "Function": "rebuildCache",
    "File": "contracts/abstracts/MixinOperatorResolver.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "OperatorResolver"
    ],
    "Internal Calls": [
        "resolverOperatorsRequired"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function rebuildCache() public {\n        bytes32[] memory requiredOperators = resolverOperatorsRequired();\n        bytes32 name;\n        IOperatorResolver.Operator memory destination;\n        // The resolver must call this function whenever it updates its state\n        for (uint256 i = 0; i < requiredOperators.length; i++) {\n            name = requiredOperators[i];\n            // Note: can only be invoked once the resolver has all the targets needed added\n            destination = resolver.getOperator(name);\n            if (destination.implementation != address(0)) {\n                operatorCache[name] = destination;\n            } else {\n                delete operatorCache[name];\n            }\n            emit CacheUpdated(name, destination);\n        }\n    }"
}