class_docstr: Wrapper around a :class:`.KeyBindings` object that only exposes the global
  key bindings.
docstr: If one of the original registries was changed. Update our merged
  version.
docstr_tok: ["If","one","of","the","original","registries","was","changed",".","Update","our","merged","version","."]
code: def _update_cache(self) -> None:
      """
      If one of the original registries was changed. Update our merged
      version.
      """
      expected_version = self.key_bindings._version
  
      if self._last_version != expected_version:
          bindings2 = KeyBindings()
  
          for b in self.key_bindings.bindings:
              if b.is_global():
                  bindings2.bindings.append(b)
  
          self._bindings2 = bindings2
          self._last_version = expected_version
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod, abstractproperty
  from inspect import isawaitable
  from typing import TYPE_CHECKING, Any, Callable, Coroutine, Hashable, Sequence, Tuple, TypeVar, Union, cast
  from prompt_toolkit.cache import SimpleCache
  from prompt_toolkit.filters import FilterOrBool, Never, to_filter
  from prompt_toolkit.keys import KEY_ALIASES, Keys
label_desc: Use image node_id 2 for calling the GlobalOnlyKeyBindings obj's underlying member method code with example usage: obj._update_cache() without return types