Skip to content

Conversation

@MarkCiliaVincenti
Copy link
Contributor

Rather than locking using a SemaphoreSlim for all caches, we can lock more intelligently, per cache key, using pooled semaphores. Uses a 3rd party library but does not introduce a new dependency to the whole project.

@MarkCiliaVincenti MarkCiliaVincenti changed the title Key-based hybrid locking Key-based hybrid/distributed locking Nov 18, 2025
@MarkCiliaVincenti
Copy link
Contributor Author

@maliming

@maliming
Copy link
Member

hi @MarkCiliaVincenti

We don't want to add a new package dependency. SemaphoreSlim is enough for us.

Thanks for your contribution, 👍

@maliming maliming closed this Dec 15, 2025
@MarkCiliaVincenti
Copy link
Contributor Author

hi @MarkCiliaVincenti

We don't want to add a new package dependency. SemaphoreSlim is enough for us.

Thanks for your contribution, 👍

@maliming this dependency is already part of ABP.

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.

2 participants