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

15 lines
553 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_redis, m) {
py::class_<lmcache::connector::RedisConnector>(m, "LMCacheRedisClient")
.def(py::init<std::string, int, int, std::string, std::string>(),
py::arg("host"), py::arg("port"), py::arg("num_workers"),
py::arg("username") = "", py::arg("password") = "")
LMCACHE_BIND_CONNECTOR_METHODS(lmcache::connector::RedisConnector);
}