redis-sdk
Developer Toolshttps://github.com/cangjielanguage-tpc/redis-sdk
A Redis client SDK implemented in the Cangjie language. Its API design is compatible with Jedis semantics, and it supports RESP2 and RESP3 protocols, the Publish/Subscribe pattern, as well as Sentinel and Cluster modes.
About this project
The Redis仓颉语言客户端 is a native Redis client for the Cangjie programming language, developed by Beijing Baolande Software Corporation. It's built on the Hyperion TCP framework and follows API design patterns similar to popular Java Redis clients like Jedis and Lettuce. The project supports both RESP2 and RESP3 protocols and offers comprehensive Redis command coverage across various data types including Strings, Hashes, Lists, Sets, Sorted Sets, Bitmaps, and more. Key features include compatibility with Redis 6.x and 7.x versions, support for single-threaded and multi-threaded connections, pub/sub functionality, sentinel and cluster modes, and extensive unit test coverage. The client implements over 200 Redis commands and provides both source code integration and static library compilation options. The development roadmap includes beta releases for single-node, sentinel, and cluster modes in 2024, with a planned 1.0.0 release by June 2024. To get started, developers can either include the Redis client as a source dependency in their Cangjie project by adding it to cjpm.toml or module.json, or compile the client and link against the static libraries. The documentation provides specific instructions for both Cangjie 0.51.4 and 0.45.2 versions, including platform-specific binary dependencies. Sample code is available in the samples directory, and comprehensive unit tests are included in the test directory.
This is a GitHub repository (source code), not a hosted HTTP API endpoint.
From the docs
Snippets taken from the repository README when available.
|---samples Redis客户端使用示例目录
|---src Redis客户端源码目录
|---test Redis客户端单元测试目录
| |---UT 通用命令的单元测试目录
|---HLT 需要准备特殊环境的命令的单元测试
|---module.json
|---README.md