Tencent / Tendis

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

distributed lock using Tendis #208

Open bakhshandeh opened 1 year ago

bakhshandeh commented 1 year 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 1 year 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.