mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[PR #1018] [CLOSED] Add C++ builder pattern #1957
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#1957
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/Mooncake/pull/1018
Author: @JasonZhang517
Created: 11/4/2025
Status: ❌ Closed
Base:
main← Head:builder_cpp📝 Commits (10+)
47add82add C++ builder for client9c644f0Merge branch 'main' into builder_cpp58650f8changed builder to const4fbe66areformat the code2fb2b7e1. fixed names and return value types 2. added tests for the buildera9aa54creformat the codes58766bcstyle: clang-format-16 for pybind_client.h8010e07revert create in setup_internal functiona6a7dc31. revert deprecated 2. integrate builder test to client builder tests.ff674c5fixed naming bugs📊 Changes
4 files changed (+167 additions, -1 deletions)
View changed files
📝
mooncake-store/include/client.h(+30 -0)📝
mooncake-store/src/client.cpp(+75 -0)📝
mooncake-store/src/pybind_client.cpp(+0 -1)📝
mooncake-store/tests/client_integration_test.cpp(+62 -0)📄 Description
Corresponding to https://github.com/kvcache-ai/Mooncake/issues/978
Based on existing create method:
static std::optional<std::shared_ptr> Create(
const std::string& local_hostname,
const std::string& metadata_connstring, const std::string& protocol,
const std::optionalstd::string& device_names = std::nullopt,
const std::string& master_server_entry = kDefaultMasterAddress,
const std::shared_ptr& transfer_engine = nullptr);
Added builder functions with std::move to reduce copy.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.