code: def register(self, key, value):
          
  
          self._actions[key] = value
  
          # invalidate cache of results for existing key
          if key in self._cache:
              del self._cache[key]
docs: Registers a callable with the specified key.
  
              `key`
                  String key to identify a callable.
              `value`
                  Callable object.