Tencent / Tendis

Tendis is a high-performance distributed storage system fully compatible with the Redis protocol.
http://tendis.cn
Other
2.95k stars 325 forks source link

distributed lock using Tendis #208

Open bakhshandeh opened 2 years ago

bakhshandeh commented 2 years ago

I want to implement a distributed lock like this one: https://redis.io/docs/reference/patterns/distributed-locks/ Is it possible with Tendis? Is Tendis fully compatible with Redis SETNX(https://redis.io/commands/setnx/)?

raffertyyu commented 2 years ago

Yes, Tendis supports SETNX command, compatible with Redis.

Most commands are also supported. Please check this site for more info Tendis.cn. We are also working hard to implement the rest commands into Tendis.

So, it won't be difficult to use Tendis as Redis server.

Btw, it's welcome to issue bugs when you use Tendis.