Skip to content

Conversation

junaed-optimizely
Copy link
Contributor

Summary

LRU cache remove method addition for CMAB support

Test plan

Tests have been added

Issues

FSSDK-11159

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a Remove method to the LruCache implementation for CMAB support. The implementation provides thread-safe removal of cache entries by key.

  • Adds a new Remove(string key) method to the LruCache class with proper thread synchronization
  • Comprehensive test coverage including edge cases and thread safety scenarios

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
OptimizelySDK/Odp/LruCache.cs Adds Remove method with thread-safe implementation
OptimizelySDK.Tests/OdpTests/LruCacheTest.cs Adds comprehensive test coverage for the Remove method

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

@muzahidul-opti muzahidul-opti left a comment

Choose a reason for hiding this comment

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

Looks good to me

@junaed-optimizely junaed-optimizely merged commit 8e90274 into master Sep 25, 2025
10 of 11 checks passed
@junaed-optimizely junaed-optimizely deleted the junaed/fssdk-11159-update-cache-implementation branch September 25, 2025 16:57
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