Skip to content

Bump version to 1.0.8 and implement entity-level caching with concurr…#114

Merged
KJonline merged 1 commit intodevfrom
Add-caching-Strategy
Feb 24, 2026
Merged

Bump version to 1.0.8 and implement entity-level caching with concurr…#114
KJonline merged 1 commit intodevfrom
Add-caching-Strategy

Conversation

@KJonline
Copy link
Copy Markdown
Contributor

…ent poll protection

Replaced global devices dict with entityCache keyed by haType|hiveID|hiveType to enable per-entity caching. Added shouldUseCachedData() to return cached state during slow polls or when another task holds the update lock, preventing redundant API calls. Implemented getCachedDevice() and setCachedDevice() helper methods with _entityCacheKey() for consistent cache key generation. Updated all device types (action

…ent poll protection

Replaced global devices dict with entityCache keyed by haType|hiveID|hiveType to enable per-entity caching. Added shouldUseCachedData() to return cached state during slow polls or when another task holds the update lock, preventing redundant API calls. Implemented getCachedDevice() and setCachedDevice() helper methods with _entityCacheKey() for consistent cache key generation. Updated all device types (action
@KJonline KJonline merged commit c6021a5 into dev Feb 24, 2026
2 checks passed
@KJonline KJonline deleted the Add-caching-Strategy branch February 24, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant