def register(self, key, value):
        """ Registers a callable with the specified key.

            `key`
                String key to identify a callable.
            `value`
                Callable object.
            """

        self._actions[key] = value

        # invalidate cache of results for existing key
        if self._cache in key:
            del self._cache[key]
dataset/ETHPy150Open xtrementl/focus/focus/registry.py/Registry.register/swapped operands of `in`