SDK Overview
Redlite provides SDKs for multiple programming languages, all implementing the same Redis-compatible API with SQLite storage.
Production SDKs
Section titled “Production SDKs”| Language | Install | Binding Type |
|---|---|---|
| Python | pip install redlite | PyO3 (native) |
| TypeScript | npm install redlite | NAPI (native) |
| Go | go get github.com/russellromney/redlite/sdks/redlite-go | FFI |
| Ruby | gem install redlite | FFI |
| Dart/Flutter | See docs | flutter_rust_bridge |
| C++ | CMake | FFI |
| Elixir | {:redlite, ...} | NIF |
| Lua | LuaRocks | FFI |
| PHP | Composer | FFI |
| Swift | SPM | FFI |
| .NET | NuGet | P/Invoke |
Experimental SDKs
Section titled “Experimental SDKs”| Language | Status |
|---|---|
| WASM | Browser support |
| Zig | Experimental |
| Java/Kotlin | Stub |
Esoteric Languages
Section titled “Esoteric Languages”For the adventurous: Brainf*ck, Chef, COW, LOLCODE, Piet, SPL, Whitespace
API Consistency
Section titled “API Consistency”All SDKs implement the same core API:
# StringsSET, GET, INCR, DECR, APPEND, STRLEN, MGET, MSET...
# KeysDEL, EXISTS, TYPE, TTL, EXPIRE, KEYS, SCAN...
# HashesHSET, HGET, HDEL, HGETALL, HMGET, HMSET, HINCRBY...
# ListsLPUSH, RPUSH, LPOP, RPOP, LLEN, LRANGE, LINDEX...
# SetsSADD, SREM, SMEMBERS, SISMEMBER, SCARD, SINTER...
# Sorted SetsZADD, ZREM, ZSCORE, ZRANK, ZRANGE, ZREVRANGE...
# Redlite ExtensionsFTS (full-text search), VECTOR (similarity search), GEO (geospatial)Oracle Tests
Section titled “Oracle Tests”All production SDKs pass the oracle test suite for cross-language compatibility verification.