[feat] Enhance cache cleaning policy configuration #1

Merged
td-zhangshun merged 2 commits from clean into v24.9-td 2025-04-17 08:10:22 +00:00

2 Commits

Author SHA1 Message Date
02a209aff8 [test] Add unit tests for ACP and ALRU cleaning policy parameters
- Add tests for wake-up and flush-max-buffers parameter validation
- Test parameter boundary values and error conditions
- Cover parameter parsing from configuration strings
- Verify set_param_cleaning_policy commands construction
- Test proper handling of different cleaning policies in configure_cache

These tests ensure the proper validation and handling of cleaning policy
parameters introduced in the previous commits.
2025-04-17 14:21:47 +08:00
09764e0e15 [fix] Enhance cache cleaning policy configuration
- Add set_param_cleaning_policy method for ACP and ALRU policies
- Add validation for wake-up and flush-max-buffers parameters
- Improve cache configuration to handle different cleaning policies
- Fix casctl stop with flush option for proper shutdown
2025-04-16 11:05:32 +08:00