[FSSDK-11990] Add Redis cache support for CMAB following ODP cache pattern#447
Merged
[FSSDK-11990] Add Redis cache support for CMAB following ODP cache pattern#447
Conversation
Implement Redis caching for CMAB (Contextual Multi-Armed Bandit) decisions using the same plugin-based architecture as ODP cache. Changes: - Add cmabcache plugin with registry and service implementations - Implement in-memory LRU cache (size: 10000, TTL: 30m) - Implement Redis cache with JSON serialization - Update CMABCacheConfig from struct to service-based map config - Add comprehensive unit and integration tests (all passing) - Update config.yaml with new service-based CMAB cache format - Add cmabcache plugin import to main.go - Fix cache.go to initialize CMAB cache via plugin system - Add tests to improve CMAB config parsing coverage Test coverage: - In-memory cache tests: 8/8 passing - Redis cache tests: 8/8 passing - Integration tests: 8/8 passing - Config parsing coverage improved for lines 149-167 - All package tests: passing
2cc456e to
1f16923
Compare
jaeopt
requested changes
Nov 4, 2025
Contributor
jaeopt
left a comment
There was a problem hiding this comment.
Looks good! A few suggestions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implement Redis caching for CMAB (Contextual Multi-Armed Bandit) decisions using the same plugin-based architecture as ODP cache.
Changes:
Test coverage:
Issues
FSSDK-11990