dragonflydb / dragonfly

A modern replacement for Redis and Memcached
https://www.dragonflydb.io/
Other
25.8k stars 950 forks source link

Where's the compatiblity table? #125

Closed kokizzu closed 2 years ago

kokizzu commented 2 years ago

list of Redis command, and one that supported by dragonfly edit: found it https://github.com/dragonflydb/dragonfly/blob/main/doc/api_status.md

but does dragonfly support http://redis.io/topics/transactions github.com/go-redis/redis/v8@v8.11.3/tx.go

txfn := func(tx *redis.Tx) error {
    exists, err := tx.Get(ctx, cacheKey).Bool()
    if err != nil && err != redis.Nil {
        return err
    }

    if exists {
        return ErrUnableToLock
    }

    _, err = tx.TxPipelined(ctx, func(pipe redis.Pipeliner) error {
        pipe.Set(ctx, cacheKey, true, exp)
        return nil
    })
    return err
}
romange commented 2 years ago

DF supports MULTI and EXEC as described in https://github.com/dragonflydb/dragonfly/blob/main/doc/api_status.md

feel free to try out your golang code and write here your impressions.