Closed kokizzu closed 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
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 }
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.
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