// SPDX-License-Identifier: Apache-2.0 #include #include "connector_pybind_utils.h" #include "connector.h" namespace py = pybind11; PYBIND11_MODULE(_native, m) { m.doc() = "Example native connector plugin for LMCache"; py::class_(m, "ExampleFSConnector") .def(py::init(), py::arg("base_path"), py::arg("num_workers")) LMCACHE_BIND_CONNECTOR_METHODS(example_connector::ExampleFSConnector); py::class_( m, "ExampleMemoryConnector") .def(py::init(), py::arg("num_workers")) LMCACHE_BIND_CONNECTOR_METHODS( example_connector::ExampleMemoryConnector); }