[feat][MP] Support separate cache key by user through lmcache tags
Label Please label your issue with "new feature" and any other relevant labels so that it can easily be easily categorized under LMCache Onboarding
Is your feature request related to a problem? Please describe.
In our case, we should to separate cache data by user field,then I add tags: OrderedDict for the extention
How to use: add user field to kv_transfer_params
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-r1",
"messages": [
{
"role": "user",
"content": "Hello, how are you?"
}
],
"max_tokens": 1000,
"temperature": 0,
"top_p": 0.95,
"stream": true,
"stream_options": {
"include_usage": true
},
"kv_transfer_params":{
"user":"example_user_id"
}
}'This feature has been land to in-process mode by https://github.com/LMCache/LMCache/pull/1200 , now we need to port it to mp mode.
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
Source: LMCache/LMCache