Skip to content

Add redis cache object sid 1412#983

Closed
Misha-Shvets wants to merge 5 commits intodevfrom
add_redis_cache_object_sid_1412
Closed

Add redis cache object sid 1412#983
Misha-Shvets wants to merge 5 commits intodevfrom
add_redis_cache_object_sid_1412

Conversation

@Misha-Shvets
Copy link
Copy Markdown
Collaborator

No description provided.

m.shvets added 3 commits April 24, 2026 12:20
…ctClassesCache into the RID manager. Update AddRequest to conditionally ensure objectSid based on object class names. Remove unused async cache for allowed object classes.
@Misha-Shvets Misha-Shvets requested a review from rimu-stack April 24, 2026 09:25
m.shvets added 2 commits April 24, 2026 12:37
…in ObjectSIDUseCase and integrate ObjectSidCacheRedisClient into TestProvider
Comment on lines +41 to +45
async def compute() -> set[str]:
names = await self._object_class_dao.get_object_class_names_include_attribute_type("objectSid")
return {n.lower() for n in names}

return await self._objectsid_allowed_object_classes_cache.get_or_compute(compute)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

давай async def compute унесем внутрь ObjectSidAllowedObjectClassesCache
думаю тут нет смысла держать эту функцию

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

обсудили голосом

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.

3 participants