gitee.com/h79/goutils@v1.22.10/thrift/redis_proxy/redis_client.go (about)

     1  package redis_proxy
     2  
     3  import (
     4  	"context"
     5  	"github.com/apache/thrift/lib/go/thrift"
     6  )
     7  
     8  type RedisProxyClient struct {
     9  	c thrift.TClient
    10  }
    11  
    12  func NewRedisProxyClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *RedisProxyClient {
    13  	return &RedisProxyClient{
    14  		c: thrift.NewTStandardClient(f.GetProtocol(t), f.GetProtocol(t)),
    15  	}
    16  }
    17  
    18  func NewRedisProxyClientProtocol(t thrift.TTransport, inTp thrift.TProtocol, outTp thrift.TProtocol) *RedisProxyClient {
    19  	return &RedisProxyClient{
    20  		c: thrift.NewTStandardClient(inTp, outTp),
    21  	}
    22  }
    23  
    24  func NewRedisProxyClient(c thrift.TClient) *RedisProxyClient {
    25  	return &RedisProxyClient{
    26  		c: c,
    27  	}
    28  }
    29  
    30  func (p *RedisProxyClient) Client_() thrift.TClient {
    31  	return p.c
    32  }
    33  
    34  // Parameters:
    35  //  - Echo
    36  func (p *RedisProxyClient) Ping(ctx context.Context, echo int32) (r int32, err error) {
    37  	var _args9 PingArgs
    38  	_args9.Echo = echo
    39  	var _result10 PingResult
    40  	if _, err = p.Client_().Call(ctx, "Ping", &_args9, &_result10); err != nil {
    41  		return
    42  	}
    43  	return _result10.GetSuccess(), nil
    44  }
    45  
    46  // Parameters:
    47  //  - Echo
    48  func (p *RedisProxyClient) RedisProxyPing(ctx context.Context, echo int32) (r int32, err error) {
    49  	var _args11 RedisProxyPingArgs
    50  	_args11.Echo = echo
    51  	var _result12 RedisProxyPingResult
    52  	if _, err = p.Client_().Call(ctx, "redis_proxy_ping", &_args11, &_result12); err != nil {
    53  		return
    54  	}
    55  	return _result12.GetSuccess(), nil
    56  }
    57  
    58  // Parameters:
    59  //  - AppId
    60  //  - Key
    61  //  - Value
    62  func (p *RedisProxyClient) GetSet(ctx context.Context, appid string, key string, value string) (r *Response, err error) {
    63  	var _args13 GetSetArgs
    64  	_args13.Appid = appid
    65  	_args13.Key = key
    66  	_args13.Value = value
    67  	var _result14 GetSetResult
    68  	if _, err = p.Client_().Call(ctx, "GetSet", &_args13, &_result14); err != nil {
    69  		return
    70  	}
    71  	return _result14.GetSuccess(), nil
    72  }
    73  
    74  // Parameters:
    75  //  - AppId
    76  //  - Key
    77  //  - Value
    78  func (p *RedisProxyClient) GetSetBytes(ctx context.Context, appid string, key string, value []byte) (r *BytesResponse, err error) {
    79  	var _args15 GetSetBytesArgs
    80  	_args15.Appid = appid
    81  	_args15.Key = key
    82  	_args15.Value = value
    83  	var _result16 GetSetBytesResult
    84  	if _, err = p.Client_().Call(ctx, "GetSetBytes", &_args15, &_result16); err != nil {
    85  		return
    86  	}
    87  	return _result16.GetSuccess(), nil
    88  }
    89  
    90  // Parameters:
    91  //  - AppId
    92  //  - Key
    93  //  - Value
    94  //  - TTL
    95  func (p *RedisProxyClient) Set(ctx context.Context, appid string, key string, value string, ttl int64) (r *Response, err error) {
    96  	var _args17 SetArgs
    97  	_args17.Appid = appid
    98  	_args17.Key = key
    99  	_args17.Value = value
   100  	_args17.TTL = ttl
   101  	var _result18 SetResult
   102  	if _, err = p.Client_().Call(ctx, "Set", &_args17, &_result18); err != nil {
   103  		return
   104  	}
   105  	return _result18.GetSuccess(), nil
   106  }
   107  
   108  // Parameters:
   109  //  - AppId
   110  //  - Key
   111  //  - Value
   112  //  - TTL
   113  func (p *RedisProxyClient) SetBytes(ctx context.Context, appid string, key string, value []byte, ttl int64) (r *Response, err error) {
   114  	var _args19 SetBytesArgs
   115  	_args19.Appid = appid
   116  	_args19.Key = key
   117  	_args19.Value = value
   118  	_args19.TTL = ttl
   119  	var _result20 RedisProxySetBytesResult
   120  	if _, err = p.Client_().Call(ctx, "SetBytes", &_args19, &_result20); err != nil {
   121  		return
   122  	}
   123  	return _result20.GetSuccess(), nil
   124  }
   125  
   126  // Parameters:
   127  //  - AppId
   128  //  - Key
   129  //  - Value
   130  //  - TTL
   131  func (p *RedisProxyClient) SetNX(ctx context.Context, appid string, key string, value string, ttl int64) (r *Response, err error) {
   132  	var _args21 SetNXArgs
   133  	_args21.Appid = appid
   134  	_args21.Key = key
   135  	_args21.Value = value
   136  	_args21.TTL = ttl
   137  	var _result22 SetNXResult
   138  	if _, err = p.Client_().Call(ctx, "SetNX", &_args21, &_result22); err != nil {
   139  		return
   140  	}
   141  	return _result22.GetSuccess(), nil
   142  }
   143  
   144  // Parameters:
   145  //  - AppId
   146  //  - Key
   147  //  - Value
   148  //  - TTL
   149  func (p *RedisProxyClient) SetNXBytes(ctx context.Context, appid string, key string, value []byte, ttl int64) (r *Response, err error) {
   150  	var _args23 SetNXBytesArgs
   151  	_args23.Appid = appid
   152  	_args23.Key = key
   153  	_args23.Value = value
   154  	_args23.TTL = ttl
   155  	var _result24 SetNXBytesResult
   156  	if _, err = p.Client_().Call(ctx, "SetNXBytes", &_args23, &_result24); err != nil {
   157  		return
   158  	}
   159  	return _result24.GetSuccess(), nil
   160  }
   161  
   162  // Parameters:
   163  //  - AppId
   164  //  - Key
   165  func (p *RedisProxyClient) Get(ctx context.Context, appid string, key string) (r *Response, err error) {
   166  	var _args25 GetArgs
   167  	_args25.Appid = appid
   168  	_args25.Key = key
   169  	var _result26 GetResult
   170  	if _, err = p.Client_().Call(ctx, "Get", &_args25, &_result26); err != nil {
   171  		return
   172  	}
   173  	return _result26.GetSuccess(), nil
   174  }
   175  
   176  // Parameters:
   177  //  - AppId
   178  //  - Key
   179  func (p *RedisProxyClient) GetBytes(ctx context.Context, appid string, key string) (r *BytesResponse, err error) {
   180  	var _args27 GetBytesArgs
   181  	_args27.Appid = appid
   182  	_args27.Key = key
   183  	var _result28 GetBytesResult
   184  	if _, err = p.Client_().Call(ctx, "GetBytes", &_args27, &_result28); err != nil {
   185  		return
   186  	}
   187  	return _result28.GetSuccess(), nil
   188  }
   189  
   190  // Parameters:
   191  //  - AppId
   192  //  - Reqs
   193  func (p *RedisProxyClient) MSet(ctx context.Context, appid string, reqs map[string]string) (r *Response, err error) {
   194  	var _args29 MSetArgs
   195  	_args29.Appid = appid
   196  	_args29.Reqs = reqs
   197  	var _result30 MSetResult
   198  	if _, err = p.Client_().Call(ctx, "MSet", &_args29, &_result30); err != nil {
   199  		return
   200  	}
   201  	return _result30.GetSuccess(), nil
   202  }
   203  
   204  // Parameters:
   205  //  - AppId
   206  //  - Reqs
   207  func (p *RedisProxyClient) MSetBytes(ctx context.Context, appid string, reqs map[string][]byte) (r *Response, err error) {
   208  	var _args31 RedisProxyMSetBytesArgs
   209  	_args31.Appid = appid
   210  	_args31.Reqs = reqs
   211  	var _result32 MSetBytesResult
   212  	if _, err = p.Client_().Call(ctx, "MSetBytes", &_args31, &_result32); err != nil {
   213  		return
   214  	}
   215  	return _result32.GetSuccess(), nil
   216  }
   217  
   218  // Parameters:
   219  //  - AppId
   220  //  - Keys
   221  func (p *RedisProxyClient) MGet(ctx context.Context, appid string, keys []string) (r *MResponse, err error) {
   222  	var _args33 MGetArgs
   223  	_args33.Appid = appid
   224  	_args33.Keys = keys
   225  	var _result34 MGetResult
   226  	if _, err = p.Client_().Call(ctx, "MGet", &_args33, &_result34); err != nil {
   227  		return
   228  	}
   229  	return _result34.GetSuccess(), nil
   230  }
   231  
   232  // Parameters:
   233  //  - AppId
   234  //  - Keys
   235  func (p *RedisProxyClient) MGetBytes(ctx context.Context, appid string, keys []string) (r *MBytesResponse, err error) {
   236  	var _args35 MGetBytesArgs
   237  	_args35.Appid = appid
   238  	_args35.Keys = keys
   239  	var _result36 MGetBytesResult
   240  	if _, err = p.Client_().Call(ctx, "MGetBytes", &_args35, &_result36); err != nil {
   241  		return
   242  	}
   243  	return _result36.GetSuccess(), nil
   244  }
   245  
   246  // Parameters:
   247  //  - AppId
   248  //  - Key
   249  func (p *RedisProxyClient) Del(ctx context.Context, appid string, key string) (r *IntResponse, err error) {
   250  	var _args37 DelArgs
   251  	_args37.Appid = appid
   252  	_args37.Key = key
   253  	var _result38 DelResult
   254  	if _, err = p.Client_().Call(ctx, "Del", &_args37, &_result38); err != nil {
   255  		return
   256  	}
   257  	return _result38.GetSuccess(), nil
   258  }
   259  
   260  // Parameters:
   261  //  - AppId
   262  //  - Keys
   263  func (p *RedisProxyClient) MDel(ctx context.Context, appid string, keys []string) (r *IntResponse, err error) {
   264  	var _args39 MDelArgs
   265  	_args39.Appid = appid
   266  	_args39.Keys = keys
   267  	var _result40 MDelResult
   268  	if _, err = p.Client_().Call(ctx, "MDel", &_args39, &_result40); err != nil {
   269  		return
   270  	}
   271  	return _result40.GetSuccess(), nil
   272  }
   273  
   274  // Parameters:
   275  //  - AppId
   276  //  - Key
   277  func (p *RedisProxyClient) Keys(ctx context.Context, appid string, key string) (r *LResponse, err error) {
   278  	var _args41 KeysArgs
   279  	_args41.Appid = appid
   280  	_args41.Key = key
   281  	var _result42 KeysResult
   282  	if _, err = p.Client_().Call(ctx, "Keys", &_args41, &_result42); err != nil {
   283  		return
   284  	}
   285  	return _result42.GetSuccess(), nil
   286  }
   287  
   288  // Parameters:
   289  //  - AppId
   290  //  - Key
   291  //  - TTL
   292  func (p *RedisProxyClient) Expire(ctx context.Context, appid string, key string, ttl int64) (r *Response, err error) {
   293  	var _args43 ExpireArgs
   294  	_args43.Appid = appid
   295  	_args43.Key = key
   296  	_args43.TTL = ttl
   297  	var _result44 ExpireResult
   298  	if _, err = p.Client_().Call(ctx, "Expire", &_args43, &_result44); err != nil {
   299  		return
   300  	}
   301  	return _result44.GetSuccess(), nil
   302  }
   303  
   304  // Parameters:
   305  //  - AppId
   306  //  - Key
   307  func (p *RedisProxyClient) TTL(ctx context.Context, appid string, key string) (r *IntResponse, err error) {
   308  	var _args45 TtlArgs
   309  	_args45.Appid = appid
   310  	_args45.Key = key
   311  	var _result46 TtlResult
   312  	if _, err = p.Client_().Call(ctx, "TTL", &_args45, &_result46); err != nil {
   313  		return
   314  	}
   315  	return _result46.GetSuccess(), nil
   316  }
   317  
   318  // Parameters:
   319  //  - AppId
   320  //  - Key
   321  func (p *RedisProxyClient) Exists(ctx context.Context, appid string, key string) (r *Response, err error) {
   322  	var _args47 ExistsArgs
   323  	_args47.Appid = appid
   324  	_args47.Key = key
   325  	var _result48 ExistsResult
   326  	if _, err = p.Client_().Call(ctx, "Exists", &_args47, &_result48); err != nil {
   327  		return
   328  	}
   329  	return _result48.GetSuccess(), nil
   330  }
   331  
   332  // Parameters:
   333  //  - AppId
   334  //  - Key
   335  //  - Field
   336  //  - Value
   337  func (p *RedisProxyClient) HSet(ctx context.Context, appid string, key string, field string, value string) (r *Response, err error) {
   338  	var _args49 HSetArgs
   339  	_args49.Appid = appid
   340  	_args49.Key = key
   341  	_args49.Field = field
   342  	_args49.Value = value
   343  	var _result50 HSetResult
   344  	if _, err = p.Client_().Call(ctx, "HSet", &_args49, &_result50); err != nil {
   345  		return
   346  	}
   347  	return _result50.GetSuccess(), nil
   348  }
   349  
   350  // Parameters:
   351  //  - AppId
   352  //  - Key
   353  //  - Field
   354  //  - Value
   355  func (p *RedisProxyClient) HSetBytes(ctx context.Context, appid string, key string, field string, value []byte) (r *Response, err error) {
   356  	var _args51 HSetBytesArgs
   357  	_args51.Appid = appid
   358  	_args51.Key = key
   359  	_args51.Field = field
   360  	_args51.Value = value
   361  	var _result52 HSetBytesResult
   362  	if _, err = p.Client_().Call(ctx, "HSetBytes", &_args51, &_result52); err != nil {
   363  		return
   364  	}
   365  	return _result52.GetSuccess(), nil
   366  }
   367  
   368  // Parameters:
   369  //  - AppId
   370  //  - Key
   371  //  - Field
   372  //  - Value
   373  func (p *RedisProxyClient) HSetNX(ctx context.Context, appid string, key string, field string, value string) (r *Response, err error) {
   374  	var _args53 HSetNXArgs
   375  	_args53.Appid = appid
   376  	_args53.Key = key
   377  	_args53.Field = field
   378  	_args53.Value = value
   379  	var _result54 HSetNXResult
   380  	if _, err = p.Client_().Call(ctx, "HSetNX", &_args53, &_result54); err != nil {
   381  		return
   382  	}
   383  	return _result54.GetSuccess(), nil
   384  }
   385  
   386  // Parameters:
   387  //  - AppId
   388  //  - Key
   389  //  - Field
   390  //  - Value
   391  func (p *RedisProxyClient) HSetNXBytes(ctx context.Context, appid string, key string, field string, value string) (r *Response, err error) {
   392  	var _args55 HSetNXBytesArgs
   393  	_args55.Appid = appid
   394  	_args55.Key = key
   395  	_args55.Field = field
   396  	_args55.Value = value
   397  	var _result56 HSetNXBytesResult
   398  	if _, err = p.Client_().Call(ctx, "HSetNXBytes", &_args55, &_result56); err != nil {
   399  		return
   400  	}
   401  	return _result56.GetSuccess(), nil
   402  }
   403  
   404  // Parameters:
   405  //  - AppId
   406  //  - Key
   407  //  - Field
   408  func (p *RedisProxyClient) HGet(ctx context.Context, appid string, key string, field string) (r *Response, err error) {
   409  	var _args57 ProxyHGetArgs
   410  	_args57.Appid = appid
   411  	_args57.Key = key
   412  	_args57.Field = field
   413  	var _result58 HGetResult
   414  	if _, err = p.Client_().Call(ctx, "HGet", &_args57, &_result58); err != nil {
   415  		return
   416  	}
   417  	return _result58.GetSuccess(), nil
   418  }
   419  
   420  // Parameters:
   421  //  - AppId
   422  //  - Key
   423  //  - Field
   424  func (p *RedisProxyClient) HGetBytes(ctx context.Context, appid string, key string, field string) (r *BytesResponse, err error) {
   425  	var _args59 RedisProxyHGetBytesArgs
   426  	_args59.Appid = appid
   427  	_args59.Key = key
   428  	_args59.Field = field
   429  	var _result60 HGetBytesResult
   430  	if _, err = p.Client_().Call(ctx, "HGetBytes", &_args59, &_result60); err != nil {
   431  		return
   432  	}
   433  	return _result60.GetSuccess(), nil
   434  }
   435  
   436  // Parameters:
   437  //  - AppId
   438  //  - Key
   439  //  - Fields
   440  func (p *RedisProxyClient) HMSet(ctx context.Context, appid string, key string, fields map[string]string) (r *Response, err error) {
   441  	var _args61 HmSetArgs
   442  	_args61.Appid = appid
   443  	_args61.Key = key
   444  	_args61.Fields = fields
   445  	var _result62 HmSetResult
   446  	if _, err = p.Client_().Call(ctx, "HMSet", &_args61, &_result62); err != nil {
   447  		return
   448  	}
   449  	return _result62.GetSuccess(), nil
   450  }
   451  
   452  // Parameters:
   453  //  - AppId
   454  //  - Key
   455  //  - Fields
   456  func (p *RedisProxyClient) HMSetBytes(ctx context.Context, appid string, key string, fields map[string][]byte) (r *Response, err error) {
   457  	var _args63 HmSetBytesArgs
   458  	_args63.Appid = appid
   459  	_args63.Key = key
   460  	_args63.Fields = fields
   461  	var _result64 HmSetBytesResult
   462  	if _, err = p.Client_().Call(ctx, "HMSetBytes", &_args63, &_result64); err != nil {
   463  		return
   464  	}
   465  	return _result64.GetSuccess(), nil
   466  }
   467  
   468  // Parameters:
   469  //  - AppId
   470  //  - Key
   471  //  - Fields
   472  func (p *RedisProxyClient) HMGet(ctx context.Context, appid string, key string, fields []string) (r *MResponse, err error) {
   473  	var _args65 HmGetArgs
   474  	_args65.Appid = appid
   475  	_args65.Key = key
   476  	_args65.Fields = fields
   477  	var _result66 HMGetResult
   478  	if _, err = p.Client_().Call(ctx, "HMGet", &_args65, &_result66); err != nil {
   479  		return
   480  	}
   481  	return _result66.GetSuccess(), nil
   482  }
   483  
   484  // Parameters:
   485  //  - AppId
   486  //  - Key
   487  //  - Fields
   488  func (p *RedisProxyClient) HMGetBytes(ctx context.Context, appid string, key string, fields []string) (r *MBytesResponse, err error) {
   489  	var _args67 HMGetBytesArgs
   490  	_args67.Appid = appid
   491  	_args67.Key = key
   492  	_args67.Fields = fields
   493  	var _result68 HMGetBytesResult
   494  	if _, err = p.Client_().Call(ctx, "HMGetBytes", &_args67, &_result68); err != nil {
   495  		return
   496  	}
   497  	return _result68.GetSuccess(), nil
   498  }
   499  
   500  // Parameters:
   501  //  - AppId
   502  //  - Key
   503  func (p *RedisProxyClient) HGetAll(ctx context.Context, appid string, key string) (r *MResponse, err error) {
   504  	var _args69 HGetAllArgs
   505  	_args69.Appid = appid
   506  	_args69.Key = key
   507  	var _result70 HGetAllResult
   508  	if _, err = p.Client_().Call(ctx, "HGetAll", &_args69, &_result70); err != nil {
   509  		return
   510  	}
   511  	return _result70.GetSuccess(), nil
   512  }
   513  
   514  // Parameters:
   515  //  - AppId
   516  //  - Key
   517  //  - Field
   518  func (p *RedisProxyClient) HDel(ctx context.Context, appid string, key string, field string) (r *IntResponse, err error) {
   519  	var _args71 HDelArgs
   520  	_args71.Appid = appid
   521  	_args71.Key = key
   522  	_args71.Field = field
   523  	var _result72 HDelResult
   524  	if _, err = p.Client_().Call(ctx, "HDel", &_args71, &_result72); err != nil {
   525  		return
   526  	}
   527  	return _result72.GetSuccess(), nil
   528  }
   529  
   530  // Parameters:
   531  //  - AppId
   532  //  - Key
   533  //  - Fields
   534  func (p *RedisProxyClient) MHDel(ctx context.Context, appid string, key string, fields []string) (r *IntResponse, err error) {
   535  	var _args73 MhDelArgs
   536  	_args73.Appid = appid
   537  	_args73.Key = key
   538  	_args73.Fields = fields
   539  	var _result74 MhDelResult
   540  	if _, err = p.Client_().Call(ctx, "MHDel", &_args73, &_result74); err != nil {
   541  		return
   542  	}
   543  	return _result74.GetSuccess(), nil
   544  }
   545  
   546  // Parameters:
   547  //  - AppId
   548  //  - Key
   549  func (p *RedisProxyClient) HKeys(ctx context.Context, appid string, key string) (r *LResponse, err error) {
   550  	var _args75 HKeysArgs
   551  	_args75.Appid = appid
   552  	_args75.Key = key
   553  	var _result76 HKeysResult
   554  	if _, err = p.Client_().Call(ctx, "HKeys", &_args75, &_result76); err != nil {
   555  		return
   556  	}
   557  	return _result76.GetSuccess(), nil
   558  }
   559  
   560  // Parameters:
   561  //  - AppId
   562  //  - Key
   563  func (p *RedisProxyClient) HVals(ctx context.Context, appid string, key string) (r *LResponse, err error) {
   564  	var _args77 HValuesArgs
   565  	_args77.Appid = appid
   566  	_args77.Key = key
   567  	var _result78 HValuesResult
   568  	if _, err = p.Client_().Call(ctx, "HVals", &_args77, &_result78); err != nil {
   569  		return
   570  	}
   571  	return _result78.GetSuccess(), nil
   572  }
   573  
   574  // Parameters:
   575  //  - AppId
   576  //  - Key
   577  //  - Field
   578  //  - Inrc
   579  func (p *RedisProxyClient) HIncrBy(ctx context.Context, appid string, key string, field string, inrc int64) (r *IntResponse, err error) {
   580  	var _args79 HIncrByArgs
   581  	_args79.Appid = appid
   582  	_args79.Key = key
   583  	_args79.Field = field
   584  	_args79.Inrc = inrc
   585  	var _result80 HIncrByResult
   586  	if _, err = p.Client_().Call(ctx, "HIncrBy", &_args79, &_result80); err != nil {
   587  		return
   588  	}
   589  	return _result80.GetSuccess(), nil
   590  }
   591  
   592  // Parameters:
   593  //  - AppId
   594  //  - Key
   595  //  - Field
   596  //  - Inrc
   597  func (p *RedisProxyClient) HIncrByFloat(ctx context.Context, appid string, key string, field string, inrc float64) (r *FloatResponse, err error) {
   598  	var _args81 HIncrByFloatArgs
   599  	_args81.Appid = appid
   600  	_args81.Key = key
   601  	_args81.Field = field
   602  	_args81.Inrc = inrc
   603  	var _result82 HIncrByFloatResult
   604  	if _, err = p.Client_().Call(ctx, "HIncrByFloat", &_args81, &_result82); err != nil {
   605  		return
   606  	}
   607  	return _result82.GetSuccess(), nil
   608  }
   609  
   610  // Parameters:
   611  //  - AppId
   612  //  - Key
   613  //  - Field
   614  func (p *RedisProxyClient) HExists(ctx context.Context, appid string, key string, field string) (r *Response, err error) {
   615  	var _args83 HExistsArgs
   616  	_args83.Appid = appid
   617  	_args83.Key = key
   618  	_args83.Field = field
   619  	var _result84 HExistsResult
   620  	if _, err = p.Client_().Call(ctx, "HExists", &_args83, &_result84); err != nil {
   621  		return
   622  	}
   623  	return _result84.GetSuccess(), nil
   624  }
   625  
   626  // Parameters:
   627  //  - AppId
   628  //  - Key
   629  //  - Member
   630  func (p *RedisProxyClient) ZAdd(ctx context.Context, appid string, key string, member *Z) (r *IntResponse, err error) {
   631  	var _args85 ZAddArgs
   632  	_args85.Appid = appid
   633  	_args85.Key = key
   634  	_args85.Member = member
   635  	var _result86 ZAddResult
   636  	if _, err = p.Client_().Call(ctx, "ZAdd", &_args85, &_result86); err != nil {
   637  		return
   638  	}
   639  	return _result86.GetSuccess(), nil
   640  }
   641  
   642  // Parameters:
   643  //  - AppId
   644  //  - Key
   645  //  - Members
   646  func (p *RedisProxyClient) MZAdd(ctx context.Context, appid string, key string, members []*Z) (r *IntResponse, err error) {
   647  	var _args87 MzAddArgs
   648  	_args87.Appid = appid
   649  	_args87.Key = key
   650  	_args87.Members = members
   651  	var _result88 MzAddResult
   652  	if _, err = p.Client_().Call(ctx, "MZAdd", &_args87, &_result88); err != nil {
   653  		return
   654  	}
   655  	return _result88.GetSuccess(), nil
   656  }
   657  
   658  // Parameters:
   659  //  - AppId
   660  //  - Key
   661  func (p *RedisProxyClient) ZCard(ctx context.Context, appid string, key string) (r *IntResponse, err error) {
   662  	var _args89 ZCardArgs
   663  	_args89.Appid = appid
   664  	_args89.Key = key
   665  	var _result90 ZCardResult
   666  	if _, err = p.Client_().Call(ctx, "ZCard", &_args89, &_result90); err != nil {
   667  		return
   668  	}
   669  	return _result90.GetSuccess(), nil
   670  }
   671  
   672  // Parameters:
   673  //  - AppId
   674  //  - Key
   675  //  - Min
   676  //  - Max
   677  func (p *RedisProxyClient) ZCount(ctx context.Context, appid string, key string, min string, max string) (r *IntResponse, err error) {
   678  	var _args91 ZCountArgs
   679  	_args91.Appid = appid
   680  	_args91.Key = key
   681  	_args91.Min = min
   682  	_args91.Max = max
   683  	var _result92 ZCountResult
   684  	if _, err = p.Client_().Call(ctx, "ZCount", &_args91, &_result92); err != nil {
   685  		return
   686  	}
   687  	return _result92.GetSuccess(), nil
   688  }
   689  
   690  // Parameters:
   691  //  - AppId
   692  //  - Key
   693  //  - Start
   694  //  - Stop
   695  func (p *RedisProxyClient) ZRangeWithScores(ctx context.Context, appid string, key string, start int64, stop int64) (r *ZResponse, err error) {
   696  	var _args93 ZRangeWithScoresArgs
   697  	_args93.Appid = appid
   698  	_args93.Key = key
   699  	_args93.Start = start
   700  	_args93.Stop = stop
   701  	var _result94 ZRangeWithScoresResult
   702  	if _, err = p.Client_().Call(ctx, "ZRangeWithScores", &_args93, &_result94); err != nil {
   703  		return
   704  	}
   705  	return _result94.GetSuccess(), nil
   706  }
   707  
   708  // Parameters:
   709  //  - AppId
   710  //  - Key
   711  //  - Min
   712  //  - Max
   713  //  - Offset
   714  //  - Count
   715  func (p *RedisProxyClient) ZRangeByScoreWithScores(ctx context.Context, appid string, key string, min string, max string, offset int64, count int64) (r *ZResponse, err error) {
   716  	var _args95 ZRangeByScoreWithScoresArgs
   717  	_args95.Appid = appid
   718  	_args95.Key = key
   719  	_args95.Min = min
   720  	_args95.Max = max
   721  	_args95.Offset = offset
   722  	_args95.Count = count
   723  	var _result96 ZRangeByScoreWithScoresResult
   724  	if _, err = p.Client_().Call(ctx, "ZRangeByScoreWithScores", &_args95, &_result96); err != nil {
   725  		return
   726  	}
   727  	return _result96.GetSuccess(), nil
   728  }
   729  
   730  // Parameters:
   731  //  - AppId
   732  //  - Key
   733  //  - Member
   734  func (p *RedisProxyClient) ZRem(ctx context.Context, appid string, key string, member string) (r *IntResponse, err error) {
   735  	var _args97 ZRemArgs
   736  	_args97.Appid = appid
   737  	_args97.Key = key
   738  	_args97.Member = member
   739  	var _result98 ZRemResult
   740  	if _, err = p.Client_().Call(ctx, "ZRem", &_args97, &_result98); err != nil {
   741  		return
   742  	}
   743  	return _result98.GetSuccess(), nil
   744  }
   745  
   746  // Parameters:
   747  //  - AppId
   748  //  - Key
   749  //  - Members
   750  func (p *RedisProxyClient) MZRem(ctx context.Context, appid string, key string, members []string) (r *IntResponse, err error) {
   751  	var _args99 MzRemArgs
   752  	_args99.Appid = appid
   753  	_args99.Key = key
   754  	_args99.Members = members
   755  	var _result100 MzRemResult
   756  	if _, err = p.Client_().Call(ctx, "MZRem", &_args99, &_result100); err != nil {
   757  		return
   758  	}
   759  	return _result100.GetSuccess(), nil
   760  }
   761  
   762  // Parameters:
   763  //  - AppId
   764  //  - Key
   765  //  - Start
   766  //  - Stop
   767  func (p *RedisProxyClient) ZRemRangeByRank(ctx context.Context, appid string, key string, start int64, stop int64) (r *IntResponse, err error) {
   768  	var _args101 ZRemRangeByRankArgs
   769  	_args101.Appid = appid
   770  	_args101.Key = key
   771  	_args101.Start = start
   772  	_args101.Stop = stop
   773  	var _result102 ZRemRangeByRankResult
   774  	if _, err = p.Client_().Call(ctx, "ZRemRangeByRank", &_args101, &_result102); err != nil {
   775  		return
   776  	}
   777  	return _result102.GetSuccess(), nil
   778  }
   779  
   780  // Parameters:
   781  //  - AppId
   782  //  - Key
   783  //  - Min
   784  //  - Max
   785  func (p *RedisProxyClient) ZRemRangeByScore(ctx context.Context, appid string, key string, min string, max string) (r *IntResponse, err error) {
   786  	var _args103 ZRemRangeByScoreArgs
   787  	_args103.Appid = appid
   788  	_args103.Key = key
   789  	_args103.Min = min
   790  	_args103.Max = max
   791  	var _result104 ZRemRangeByScoreResult
   792  	if _, err = p.Client_().Call(ctx, "ZRemRangeByScore", &_args103, &_result104); err != nil {
   793  		return
   794  	}
   795  	return _result104.GetSuccess(), nil
   796  }
   797  
   798  // Parameters:
   799  //  - AppId
   800  //  - Key
   801  //  - Increment
   802  //  - Member
   803  func (p *RedisProxyClient) ZIncrBy(ctx context.Context, appid string, key string, increment float64, member string) (r *FloatResponse, err error) {
   804  	var _args105 ZIncrByArgs
   805  	_args105.Appid = appid
   806  	_args105.Key = key
   807  	_args105.Increment = increment
   808  	_args105.Member = member
   809  	var _result106 ZIncrByResult
   810  	if _, err = p.Client_().Call(ctx, "ZIncrBy", &_args105, &_result106); err != nil {
   811  		return
   812  	}
   813  	return _result106.GetSuccess(), nil
   814  }
   815  
   816  // Parameters:
   817  //  - AppId
   818  //  - Key
   819  //  - Member
   820  func (p *RedisProxyClient) ZScore(ctx context.Context, appid string, key string, member string) (r *FloatResponse, err error) {
   821  	var _args107 ZScoreArgs
   822  	_args107.Appid = appid
   823  	_args107.Key = key
   824  	_args107.Member = member
   825  	var _result108 ZScoreResult
   826  	if _, err = p.Client_().Call(ctx, "ZScore", &_args107, &_result108); err != nil {
   827  		return
   828  	}
   829  	return _result108.GetSuccess(), nil
   830  }
   831  
   832  // Parameters:
   833  //  - AppId
   834  //  - Key
   835  //  - Member
   836  func (p *RedisProxyClient) SAdd(ctx context.Context, appid string, key string, member string) (r *IntResponse, err error) {
   837  	var _args109 SAddArgs
   838  	_args109.Appid = appid
   839  	_args109.Key = key
   840  	_args109.Member = member
   841  	var _result110 SAddResult
   842  	if _, err = p.Client_().Call(ctx, "SAdd", &_args109, &_result110); err != nil {
   843  		return
   844  	}
   845  	return _result110.GetSuccess(), nil
   846  }
   847  
   848  // Parameters:
   849  //  - AppId
   850  //  - Key
   851  //  - Members
   852  func (p *RedisProxyClient) MSAdd(ctx context.Context, appid string, key string, members []string) (r *IntResponse, err error) {
   853  	var _args111 MsAddArgs
   854  	_args111.Appid = appid
   855  	_args111.Key = key
   856  	_args111.Members = members
   857  	var _result112 MsAddResult
   858  	if _, err = p.Client_().Call(ctx, "MSAdd", &_args111, &_result112); err != nil {
   859  		return
   860  	}
   861  	return _result112.GetSuccess(), nil
   862  }
   863  
   864  // Parameters:
   865  //  - AppId
   866  //  - Key
   867  func (p *RedisProxyClient) SCard(ctx context.Context, appid string, key string) (r *IntResponse, err error) {
   868  	var _args113 SCardArgs
   869  	_args113.Appid = appid
   870  	_args113.Key = key
   871  	var _result114 SCardResult
   872  	if _, err = p.Client_().Call(ctx, "SCard", &_args113, &_result114); err != nil {
   873  		return
   874  	}
   875  	return _result114.GetSuccess(), nil
   876  }
   877  
   878  // Parameters:
   879  //  - AppId
   880  //  - Key
   881  //  - Member
   882  func (p *RedisProxyClient) SIsMember(ctx context.Context, appid string, key string, member string) (r *Response, err error) {
   883  	var _args115 SIsMemberArgs
   884  	_args115.Appid = appid
   885  	_args115.Key = key
   886  	_args115.Member = member
   887  	var _result116 SIsMemberResult
   888  	if _, err = p.Client_().Call(ctx, "SIsMember", &_args115, &_result116); err != nil {
   889  		return
   890  	}
   891  	return _result116.GetSuccess(), nil
   892  }
   893  
   894  // Parameters:
   895  //  - AppId
   896  //  - Key
   897  func (p *RedisProxyClient) SMembers(ctx context.Context, appid string, key string) (r *LResponse, err error) {
   898  	var _args117 SMembersArgs
   899  	_args117.Appid = appid
   900  	_args117.Key = key
   901  	var _result118 SMembersResult
   902  	if _, err = p.Client_().Call(ctx, "SMembers", &_args117, &_result118); err != nil {
   903  		return
   904  	}
   905  	return _result118.GetSuccess(), nil
   906  }
   907  
   908  // Parameters:
   909  //  - AppId
   910  //  - Key
   911  func (p *RedisProxyClient) SRandMember(ctx context.Context, appid string, key string) (r *Response, err error) {
   912  	var _args119 SRandMemberArgs
   913  	_args119.Appid = appid
   914  	_args119.Key = key
   915  	var _result120 SRandMemberResult
   916  	if _, err = p.Client_().Call(ctx, "SRandMember", &_args119, &_result120); err != nil {
   917  		return
   918  	}
   919  	return _result120.GetSuccess(), nil
   920  }
   921  
   922  // Parameters:
   923  //  - AppId
   924  //  - Key
   925  //  - N
   926  func (p *RedisProxyClient) SRandMemberN(ctx context.Context, appid string, key string, n int64) (r *LResponse, err error) {
   927  	var _args121 SRandMemberNArgs
   928  	_args121.Appid = appid
   929  	_args121.Key = key
   930  	_args121.N = n
   931  	var _result122 SRandMemberNResult
   932  	if _, err = p.Client_().Call(ctx, "SRandMemberN", &_args121, &_result122); err != nil {
   933  		return
   934  	}
   935  	return _result122.GetSuccess(), nil
   936  }
   937  
   938  // Parameters:
   939  //  - AppId
   940  //  - Key
   941  //  - Member
   942  func (p *RedisProxyClient) SRem(ctx context.Context, appid string, key string, member string) (r *IntResponse, err error) {
   943  	var _args123 SRemArgs
   944  	_args123.Appid = appid
   945  	_args123.Key = key
   946  	_args123.Member = member
   947  	var _result124 SRemResult
   948  	if _, err = p.Client_().Call(ctx, "SRem", &_args123, &_result124); err != nil {
   949  		return
   950  	}
   951  	return _result124.GetSuccess(), nil
   952  }
   953  
   954  // Parameters:
   955  //  - AppId
   956  //  - Key
   957  //  - Member
   958  func (p *RedisProxyClient) MSRem(ctx context.Context, appid string, key string, member []string) (r *IntResponse, err error) {
   959  	var _args125 MsRemArgs
   960  	_args125.Appid = appid
   961  	_args125.Key = key
   962  	_args125.Member = member
   963  	var _result126 MsRemResult
   964  	if _, err = p.Client_().Call(ctx, "MSRem", &_args125, &_result126); err != nil {
   965  		return
   966  	}
   967  	return _result126.GetSuccess(), nil
   968  }
   969  
   970  // Parameters:
   971  //  - AppId
   972  //  - Key
   973  //  - Value
   974  func (p *RedisProxyClient) LPush(ctx context.Context, appid string, key string, value string) (r *IntResponse, err error) {
   975  	var _args127 LPushArgs
   976  	_args127.Appid = appid
   977  	_args127.Key = key
   978  	_args127.Value = value
   979  	var _result128 LPushResult
   980  	if _, err = p.Client_().Call(ctx, "LPush", &_args127, &_result128); err != nil {
   981  		return
   982  	}
   983  	return _result128.GetSuccess(), nil
   984  }
   985  
   986  // Parameters:
   987  //  - AppId
   988  //  - Key
   989  //  - Value
   990  func (p *RedisProxyClient) LPushByte(ctx context.Context, appid string, key string, value []byte) (r *IntResponse, err error) {
   991  	var _args129 LPushByteArgs
   992  	_args129.Appid = appid
   993  	_args129.Key = key
   994  	_args129.Value = value
   995  	var _result130 LPushByteResult
   996  	if _, err = p.Client_().Call(ctx, "LPushByte", &_args129, &_result130); err != nil {
   997  		return
   998  	}
   999  	return _result130.GetSuccess(), nil
  1000  }
  1001  
  1002  // Parameters:
  1003  //  - AppId
  1004  //  - Key
  1005  //  - Value
  1006  func (p *RedisProxyClient) RPush(ctx context.Context, appid string, key string, value string) (r *IntResponse, err error) {
  1007  	var _args131 RPushArgs
  1008  	_args131.Appid = appid
  1009  	_args131.Key = key
  1010  	_args131.Value = value
  1011  	var _result132 RPushResult
  1012  	if _, err = p.Client_().Call(ctx, "RPush", &_args131, &_result132); err != nil {
  1013  		return
  1014  	}
  1015  	return _result132.GetSuccess(), nil
  1016  }
  1017  
  1018  // Parameters:
  1019  //  - AppId
  1020  //  - Key
  1021  //  - Value
  1022  func (p *RedisProxyClient) RPushByte(ctx context.Context, appid string, key string, value []byte) (r *IntResponse, err error) {
  1023  	var _args133 RPushByteArgs
  1024  	_args133.Appid = appid
  1025  	_args133.Key = key
  1026  	_args133.Value = value
  1027  	var _result134 RPushByteResult
  1028  	if _, err = p.Client_().Call(ctx, "RPushByte", &_args133, &_result134); err != nil {
  1029  		return
  1030  	}
  1031  	return _result134.GetSuccess(), nil
  1032  }
  1033  
  1034  // Parameters:
  1035  //  - AppId
  1036  //  - Key
  1037  //  - Value
  1038  func (p *RedisProxyClient) MLPush(ctx context.Context, appid string, key string, value []string) (r *IntResponse, err error) {
  1039  	var _args135 MlPushArgs
  1040  	_args135.Appid = appid
  1041  	_args135.Key = key
  1042  	_args135.Value = value
  1043  	var _result136 MlPushResult
  1044  	if _, err = p.Client_().Call(ctx, "MLPush", &_args135, &_result136); err != nil {
  1045  		return
  1046  	}
  1047  	return _result136.GetSuccess(), nil
  1048  }
  1049  
  1050  // Parameters:
  1051  //  - AppId
  1052  //  - Key
  1053  //  - Value
  1054  //  - TTL
  1055  func (p *RedisProxyClient) MLPushWithTTL(ctx context.Context, appid string, key string, value []string, ttl int64) (r *IntResponse, err error) {
  1056  	var _args137 MlPushWithTTLArgs
  1057  	_args137.Appid = appid
  1058  	_args137.Key = key
  1059  	_args137.Value = value
  1060  	_args137.TTL = ttl
  1061  	var _result138 MlPushWithTTLResult
  1062  	if _, err = p.Client_().Call(ctx, "MLPushWithTTL", &_args137, &_result138); err != nil {
  1063  		return
  1064  	}
  1065  	return _result138.GetSuccess(), nil
  1066  }
  1067  
  1068  // Parameters:
  1069  //  - AppId
  1070  //  - Key
  1071  //  - Value
  1072  //  - TTL
  1073  func (p *RedisProxyClient) MLPushByteWithTTL(ctx context.Context, appid string, key string, value [][]byte, ttl int64) (r *IntResponse, err error) {
  1074  	var _args139 MlPushByteWithTTLArgs
  1075  	_args139.Appid = appid
  1076  	_args139.Key = key
  1077  	_args139.Value = value
  1078  	_args139.TTL = ttl
  1079  	var _result140 MlPushByteWithTTLResult
  1080  	if _, err = p.Client_().Call(ctx, "MLPushByteWithTTL", &_args139, &_result140); err != nil {
  1081  		return
  1082  	}
  1083  	return _result140.GetSuccess(), nil
  1084  }
  1085  
  1086  // Parameters:
  1087  //  - AppId
  1088  //  - Key
  1089  //  - Value
  1090  //  - TTL
  1091  func (p *RedisProxyClient) MRPushWithTTL(ctx context.Context, appid string, key string, value []string, ttl int64) (r *IntResponse, err error) {
  1092  	var _args141 MrPushWithTTLArgs
  1093  	_args141.Appid = appid
  1094  	_args141.Key = key
  1095  	_args141.Value = value
  1096  	_args141.TTL = ttl
  1097  	var _result142 MrPushWithTTLResult
  1098  	if _, err = p.Client_().Call(ctx, "MRPushWithTTL", &_args141, &_result142); err != nil {
  1099  		return
  1100  	}
  1101  	return _result142.GetSuccess(), nil
  1102  }
  1103  
  1104  // Parameters:
  1105  //  - AppId
  1106  //  - Key
  1107  //  - Value
  1108  //  - TTL
  1109  func (p *RedisProxyClient) MRPushByteWithTTL(ctx context.Context, appid string, key string, value [][]byte, ttl int64) (r *IntResponse, err error) {
  1110  	var _args143 MrPushByteWithTTLArgs
  1111  	_args143.Appid = appid
  1112  	_args143.Key = key
  1113  	_args143.Value = value
  1114  	_args143.TTL = ttl
  1115  	var _result144 MrPushByteWithTTLResult
  1116  	if _, err = p.Client_().Call(ctx, "MRPushByteWithTTL", &_args143, &_result144); err != nil {
  1117  		return
  1118  	}
  1119  	return _result144.GetSuccess(), nil
  1120  }
  1121  
  1122  // Parameters:
  1123  //  - AppId
  1124  //  - Key
  1125  func (p *RedisProxyClient) LPop(ctx context.Context, appid string, key string) (r *Response, err error) {
  1126  	var _args145 ProxyLPopArgs
  1127  	_args145.Appid = appid
  1128  	_args145.Key = key
  1129  	var _result146 LPopResult
  1130  	if _, err = p.Client_().Call(ctx, "LPop", &_args145, &_result146); err != nil {
  1131  		return
  1132  	}
  1133  	return _result146.GetSuccess(), nil
  1134  }
  1135  
  1136  // Parameters:
  1137  //  - AppId
  1138  //  - Key
  1139  func (p *RedisProxyClient) LPopByte(ctx context.Context, appid string, key string) (r *BytesResponse, err error) {
  1140  	var _args147 LPopByteArgs
  1141  	_args147.Appid = appid
  1142  	_args147.Key = key
  1143  	var _result148 LPopByteResult
  1144  	if _, err = p.Client_().Call(ctx, "LPopByte", &_args147, &_result148); err != nil {
  1145  		return
  1146  	}
  1147  	return _result148.GetSuccess(), nil
  1148  }
  1149  
  1150  // Parameters:
  1151  //  - AppId
  1152  //  - Key
  1153  func (p *RedisProxyClient) RPop(ctx context.Context, appid string, key string) (r *Response, err error) {
  1154  	var _args149 RPopArgs
  1155  	_args149.Appid = appid
  1156  	_args149.Key = key
  1157  	var _result150 RPopResult
  1158  	if _, err = p.Client_().Call(ctx, "RPop", &_args149, &_result150); err != nil {
  1159  		return
  1160  	}
  1161  	return _result150.GetSuccess(), nil
  1162  }
  1163  
  1164  // Parameters:
  1165  //  - AppId
  1166  //  - Key
  1167  func (p *RedisProxyClient) RPopByte(ctx context.Context, appid string, key string) (r *BytesResponse, err error) {
  1168  	var _args151 RPopByteArgs
  1169  	_args151.Appid = appid
  1170  	_args151.Key = key
  1171  	var _result152 RPopByteResult
  1172  	if _, err = p.Client_().Call(ctx, "RPopByte", &_args151, &_result152); err != nil {
  1173  		return
  1174  	}
  1175  	return _result152.GetSuccess(), nil
  1176  }
  1177  
  1178  // Parameters:
  1179  //  - AppId
  1180  //  - Key
  1181  //  - Pivot
  1182  //  - Value
  1183  func (p *RedisProxyClient) LInsertBefore(ctx context.Context, appid string, key string, pivot string, value string) (r *IntResponse, err error) {
  1184  	var _args153 LInsertBeforeArgs
  1185  	_args153.Appid = appid
  1186  	_args153.Key = key
  1187  	_args153.Pivot = pivot
  1188  	_args153.Value = value
  1189  	var _result154 LInsertBeforeResult
  1190  	if _, err = p.Client_().Call(ctx, "LInsertBefore", &_args153, &_result154); err != nil {
  1191  		return
  1192  	}
  1193  	return _result154.GetSuccess(), nil
  1194  }
  1195  
  1196  // Parameters:
  1197  //  - AppId
  1198  //  - Key
  1199  //  - Pivot
  1200  //  - Value
  1201  func (p *RedisProxyClient) LInsertAfter(ctx context.Context, appid string, key string, pivot string, value string) (r *IntResponse, err error) {
  1202  	var _args155 LInsertAfterArgs
  1203  	_args155.Appid = appid
  1204  	_args155.Key = key
  1205  	_args155.Pivot = pivot
  1206  	_args155.Value = value
  1207  	var _result156 LInsertAfterResult
  1208  	if _, err = p.Client_().Call(ctx, "LInsertAfter", &_args155, &_result156); err != nil {
  1209  		return
  1210  	}
  1211  	return _result156.GetSuccess(), nil
  1212  }
  1213  
  1214  // Parameters:
  1215  //  - AppId
  1216  //  - Key
  1217  func (p *RedisProxyClient) LLen(ctx context.Context, appid string, key string) (r *IntResponse, err error) {
  1218  	var _args157 LLenArgs
  1219  	_args157.Appid = appid
  1220  	_args157.Key = key
  1221  	var _result158 LLenResult
  1222  	if _, err = p.Client_().Call(ctx, "LLen", &_args157, &_result158); err != nil {
  1223  		return
  1224  	}
  1225  	return _result158.GetSuccess(), nil
  1226  }
  1227  
  1228  // Parameters:
  1229  //  - AppId
  1230  //  - Keys
  1231  func (p *RedisProxyClient) MLLen(ctx context.Context, appid string, keys []string) (r *MIntResponse, err error) {
  1232  	var _args159 MlLenArgs
  1233  	_args159.Appid = appid
  1234  	_args159.Keys = keys
  1235  	var _result160 MlLenResult
  1236  	if _, err = p.Client_().Call(ctx, "MLLen", &_args159, &_result160); err != nil {
  1237  		return
  1238  	}
  1239  	return _result160.GetSuccess(), nil
  1240  }
  1241  
  1242  // Parameters:
  1243  //  - AppId
  1244  //  - Key
  1245  //  - Index
  1246  //  - Value
  1247  func (p *RedisProxyClient) LSet(ctx context.Context, appid string, key string, index int64, value string) (r *Response, err error) {
  1248  	var _args161 LSetArgs
  1249  	_args161.Appid = appid
  1250  	_args161.Key = key
  1251  	_args161.Index = index
  1252  	_args161.Value = value
  1253  	var _result162 LSetResult
  1254  	if _, err = p.Client_().Call(ctx, "LSet", &_args161, &_result162); err != nil {
  1255  		return
  1256  	}
  1257  	return _result162.GetSuccess(), nil
  1258  }
  1259  
  1260  // Parameters:
  1261  //  - AppId
  1262  //  - Key
  1263  //  - Index
  1264  func (p *RedisProxyClient) LIndex(ctx context.Context, appid string, key string, index int64) (r *Response, err error) {
  1265  	var _args163 LIndexArgs
  1266  	_args163.Appid = appid
  1267  	_args163.Key = key
  1268  	_args163.Index = index
  1269  	var _result164 LIndexResult
  1270  	if _, err = p.Client_().Call(ctx, "LIndex", &_args163, &_result164); err != nil {
  1271  		return
  1272  	}
  1273  	return _result164.GetSuccess(), nil
  1274  }
  1275  
  1276  // Parameters:
  1277  //  - AppId
  1278  //  - Key
  1279  //  - Start
  1280  //  - Stop
  1281  func (p *RedisProxyClient) LRange(ctx context.Context, appid string, key string, start int64, stop int64) (r *LResponse, err error) {
  1282  	var _args165 LRangeArgs
  1283  	_args165.Appid = appid
  1284  	_args165.Key = key
  1285  	_args165.Start = start
  1286  	_args165.Stop = stop
  1287  	var _result166 LRangeResult
  1288  	if _, err = p.Client_().Call(ctx, "LRange", &_args165, &_result166); err != nil {
  1289  		return
  1290  	}
  1291  	return _result166.GetSuccess(), nil
  1292  }
  1293  
  1294  // Parameters:
  1295  //  - AppId
  1296  //  - Key
  1297  //  - Start
  1298  //  - Stop
  1299  func (p *RedisProxyClient) LTrim(ctx context.Context, appid string, key string, start int64, stop int64) (r *Response, err error) {
  1300  	var _args167 LTrimArgs
  1301  	_args167.Appid = appid
  1302  	_args167.Key = key
  1303  	_args167.Start = start
  1304  	_args167.Stop = stop
  1305  	var _result168 LTrimResult
  1306  	if _, err = p.Client_().Call(ctx, "LTrim", &_args167, &_result168); err != nil {
  1307  		return
  1308  	}
  1309  	return _result168.GetSuccess(), nil
  1310  }
  1311  
  1312  // Parameters:
  1313  //  - AppId
  1314  func (p *RedisProxyClient) ClusterNodes(ctx context.Context, appid string) (r *Response, err error) {
  1315  	var _args169 ClusterNodesArgs
  1316  	_args169.Appid = appid
  1317  	var _result170 ClusterNodesResult
  1318  	if _, err = p.Client_().Call(ctx, "ClusterNodes", &_args169, &_result170); err != nil {
  1319  		return
  1320  	}
  1321  	return _result170.GetSuccess(), nil
  1322  }
  1323  
  1324  // Parameters:
  1325  //  - AppId
  1326  func (p *RedisProxyClient) ClusterInfo(ctx context.Context, appid string) (r *Response, err error) {
  1327  	var _args171 ClusterInfoArgs
  1328  	_args171.Appid = appid
  1329  	var _result172 ClusterInfoResult
  1330  	if _, err = p.Client_().Call(ctx, "ClusterInfo", &_args171, &_result172); err != nil {
  1331  		return
  1332  	}
  1333  	return _result172.GetSuccess(), nil
  1334  }
  1335  
  1336  // Parameters:
  1337  //  - AppId
  1338  //  - Sections
  1339  func (p *RedisProxyClient) Info(ctx context.Context, appid string, sections []string) (r *MResponse, err error) {
  1340  	var _args173 InfoArgs
  1341  	_args173.Appid = appid
  1342  	_args173.Sections = sections
  1343  	var _result174 InfoResult
  1344  	if _, err = p.Client_().Call(ctx, "Info", &_args173, &_result174); err != nil {
  1345  		return
  1346  	}
  1347  	return _result174.GetSuccess(), nil
  1348  }
  1349  
  1350  // Parameters:
  1351  //  - AppId
  1352  //  - Addr
  1353  //  - Sections
  1354  func (p *RedisProxyClient) NodeInfo(ctx context.Context, appid string, addr string, sections []string) (r *Response, err error) {
  1355  	var _args175 NodeInfoArgs
  1356  	_args175.Appid = appid
  1357  	_args175.Addr = addr
  1358  	_args175.Sections = sections
  1359  	var _result176 NodeInfoResult
  1360  	if _, err = p.Client_().Call(ctx, "NodeInfo", &_args175, &_result176); err != nil {
  1361  		return
  1362  	}
  1363  	return _result176.GetSuccess(), nil
  1364  }