Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/kubernetes-client/python
/ get_by_key
Method
get_by_key
kubernetes/informer/cache.py:91–94 ·
view source on GitHub ↗
Look up an object by key. Returns None when absent.
(self, key)
Source
from the content-addressed store, hash-verified
89
return
self.get_by_key(key)
90
91
def
get_by_key(self, key):
92
""
"Look up an object by key. Returns None when absent."
""
93
with
self._rlock:
94
return
self._objects.get(key)
Callers
13
get
Method · 0.95
_initial_list
Method · 0.80
_wait_in_cache
Method · 0.80
test_cache_populated_after_start
Method · 0.80
test_added_event_and_cache_entry
Method · 0.80
test_modified_event_and_cache_refresh
Method · 0.80
test_deleted_event_removes_from_cache
Method · 0.80
test_resync_fires_modified_for_existing_objects
Method · 0.80
test_get_by_key
Method · 0.80
test_thread_safety
Method · 0.80
test_modified_event_updates_cache
Method · 0.80
test_relist_after_410_fires_delete_for_removed_items
Method · 0.80
Calls
1
get
Method · 0.45
Tested by
11
_wait_in_cache
Method · 0.64
test_cache_populated_after_start
Method · 0.64
test_added_event_and_cache_entry
Method · 0.64
test_modified_event_and_cache_refresh
Method · 0.64
test_deleted_event_removes_from_cache
Method · 0.64
test_resync_fires_modified_for_existing_objects
Method · 0.64
test_get_by_key
Method · 0.64
test_thread_safety
Method · 0.64
test_modified_event_updates_cache
Method · 0.64
test_relist_after_410_fires_delete_for_removed_items
Method · 0.64
test_watch_disruption_existing_items_fire_modified_after_relist
Method · 0.64