Exemplo n.º 1
0
 public RedisCommand Set(string key, string value)
 {
     var builder = new RedisInlineCommandBuilder();
     builder.SetCommand("SET");
     builder.AddInlineArgument(key);
     builder.SetData(value);
     return new RedisCommand(this._executor, builder);
 }
Exemplo n.º 2
0
        private static RedisInlineCommandBuilder For2Args(string command, string key, byte[] value)
        {
            var builder = new RedisInlineCommandBuilder();

            builder.SetCommand(command);
            builder.AddInlineArgument(key);
            builder.SetData(value);
            return(builder);
        }
Exemplo n.º 3
0
        public RedisCommand Set(string key, string value)
        {
            var builder = new RedisInlineCommandBuilder();

            builder.SetCommand("SET");
            builder.AddInlineArgument(key);
            builder.SetData(value);
            return(new RedisCommand(this._executor, builder));
        }
Exemplo n.º 4
0
        private static RedisInlineCommandBuilder For3Args(string command, string key, int v1, byte[] data)
        {
            var builder = new RedisInlineCommandBuilder();

            builder.SetCommand(command);
            builder.AddInlineArgument(key);
            builder.AddInlineArgument(v1.ToString());
            builder.SetData(data);

            return(builder);
        }
Exemplo n.º 5
0
        private static RedisInlineCommandBuilder For3Args(string command, string key, int v1, byte[] data)
        {
            var builder = new RedisInlineCommandBuilder();
            builder.SetCommand(command);
            builder.AddInlineArgument(key);
            builder.AddInlineArgument(v1.ToString());
            builder.SetData(data);

            return builder;
        }
Exemplo n.º 6
0
 private static RedisInlineCommandBuilder For2Args(string command, string key, byte[] value)
 {
     var builder = new RedisInlineCommandBuilder();
     builder.SetCommand(command);
     builder.AddInlineArgument(key);
     builder.SetData(value);
     return builder;
 }