Skip to content

Add thread safety

Choose a tag to compare

@ashtanko ashtanko released this 08 Dec 23:36
· 10 commits to main since this release
5c00a86

Add thread safety to LruCache using synchronization

  • Ensure thread-safe access to all cache operations
  • Use synchronized blocks to guard shared state modifications
  • Protect LinkedHashMap and size-related counters from race conditions