Files
lmcache--lmcache/csrc/storage_backends/fs/pybind.cpp
T
2026-07-13 12:24:33 +08:00

16 lines
582 B
C++

// SPDX-License-Identifier: Apache-2.0
#include <pybind11/pybind11.h>
#include "../connector_pybind_utils.h"
#include "connector.h"
namespace py = pybind11;
PYBIND11_MODULE(lmcache_fs, m) {
py::class_<lmcache::connector::FSConnector>(m, "LMCacheFSClient")
.def(py::init<std::string, int, std::string, bool, size_t>(),
py::arg("base_path"), py::arg("num_workers"),
py::arg("relative_tmp_dir") = "", py::arg("use_odirect") = false,
py::arg("read_ahead_size") = 0)
LMCACHE_BIND_CONNECTOR_METHODS(lmcache::connector::FSConnector);
}