mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-06 21:40:41 +02:00
updates method to get value dict from cache
This commit is contained in:
parent
06e642972f
commit
53713794d6
@ -32,8 +32,8 @@ class DataServiceCache:
|
||||
def update_cache(self, full_access_path: str, value: Any) -> None:
|
||||
set_nested_value_by_path(self._cache, full_access_path, value)
|
||||
|
||||
def get_value_dict_from_cache(self, full_access_path: str) -> dict[str, Any] | None:
|
||||
def get_value_dict_from_cache(self, full_access_path: str) -> dict[str, Any]:
|
||||
try:
|
||||
return get_nested_dict_by_path(self._cache, full_access_path)
|
||||
except (SerializationPathError, SerializationValueError, KeyError):
|
||||
return None
|
||||
return {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user