Skip to content
A Distributed Redis Protocol Compatible NoSQL Database
Tcl Go Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin/titan feat(main.go): rollingWriter -> rollingwriter Sep 2, 2019
command Merge pull request #114 from distributedio/feature/modifyci Aug 28, 2019
context Merge branch 'titan_sync' of int… Apr 30, 2019
db feat(zset.go): judge return value Sep 3, 2019
docs Merge pull request #119 from zzstorage/master Jul 10, 2019
encoding Merge branch 'titan_sync' of int… Apr 30, 2019
metrics feat(mod.go): update tidb sdk Sep 2, 2019
proposals Merge pull request #51 from piaoairy219/patch-2 May 19, 2019
server Use tmp files for tls testing Jun 10, 2019
tests/redis Modify the redis test script to titan Jul 4, 2019
tools change zadd error output to follow redis Aug 28, 2019
.codelingoignore Add .codelingoignore file at project root. Feb 13, 2019
.gitignore Update gitignore: ignore cover.cov Feb 28, 2019
.travis.yml modify: update ci file Jun 18, 2019 Create Nov 15, 2018
LICENSE Create LICENSE Nov 14, 2018
Makefile fix: fix ci lint for current Jun 11, 2019 update: update readme May 31, 2019
client.go fix(client): log the clientid Jul 31, 2019
codelingo.yaml Add codelingo.yaml file at project root. Feb 13, 2019
docker-compose.yml fix(docker-compose): export titan logs Aug 1, 2019
go.mod feat(main.go): rollingWriter -> rollingwriter Sep 2, 2019
titan.go replace package name meitu to distributedio Apr 16, 2019
util.go replace package name meitu to distributedio Apr 16, 2019


Build Status Go Report Card Coverage Status Coverage Status Discourse status

A distributed implementation of Redis compatible layer based on TiKV

Why Titan?

  • Completely compatible with redis protocol
  • Full distributed transaction with strong consistency
  • Multi-tenancy support
  • No painful scale out
  • High availability

Thanks TiKV for supporting the core features. The project is developed and open sourced by the Beijing Infrastructure Team at Meitu and has been donated to DistributedIO org.


Arch about titan


Arch about TiKV

TiKV softwares

Quick start

Can't wait to experiment Titan? Just follow 2 steps:

  1. curl -s -O
  2. docker-compose up

Then connect to titan use redis-cli

redis-cli -p 7369



SetUp TiKV cluster

Titan works with 2 tidb components:

  • TiKV
  • Pd

To setup TiKV and PD, please follow official instruction

Run Titan

  • Build the binary
go get
cd $GOPATH/src/
  • Edit the configration file
  • Run titan

For more details about Deploy Titan, click here.


Basic benchmarking result.


Get command benchmark


Set command benchmark

For more info, please vist here Titan Benchmarks

Commands supporting status

For fully supported command list vist here

command status
Connections Won't Fully Supported
Transactions Supported
Server Not Fully Supported Yet
Keys Not Fully Supported Yet
Strings Not Fully Supported Yet
List Not Fully Supported Yet
Hashes Supported
Sets Not Fully Supported Yet
Sorted Sets Not Fully Supported Yet
Geo Not Supported Yet
Hyperloglog Not Supported Yet
Pub/Sub Not Supported Yet
Scripting Not Supported Yet
Streams Not Supported Yet




View our Roadmap

You can’t perform that action at this time.