diff --git a/kvrocks.conf b/kvrocks.conf index c747fde2edd..79c16b5c28b 100644 --- a/kvrocks.conf +++ b/kvrocks.conf @@ -309,7 +309,7 @@ max-bitmap-to-string-mb 16 # If enabled, the cursor will be unsigned 64-bit integers. # If disabled, the cursor will be a string. # Default: no -redis-cursor-compatible no +redis-cursor-compatible yes # Whether to enable the RESP3 protocol. # NOTICE: RESP3 is still under development, don't enable it in production environment. diff --git a/tests/gocase/unit/keyspace/keyspace_test.go b/tests/gocase/unit/keyspace/keyspace_test.go index d60fb71f632..704d4475a5a 100644 --- a/tests/gocase/unit/keyspace/keyspace_test.go +++ b/tests/gocase/unit/keyspace/keyspace_test.go @@ -197,7 +197,7 @@ func TestKeyspace(t *testing.T) { }) t.Run("Type a expired key", func(t *testing.T) { - expireTime := time.Second + expireTime := 2 * time.Second key := "foo" require.NoError(t, rdb.Del(ctx, key).Err()) require.Equal(t, "OK", rdb.SetEx(ctx, key, "bar", expireTime).Val())