Пример #1
0
        public RedisCommand FlushAll()
        {
            var builder = new RedisInlineCommandBuilder();

            builder.SetCommand("FLUSHALL");
            return(new RedisCommand(_executor, builder));
        }
Пример #2
0
        private static RedisInlineCommandBuilder For0Args(string command)
        {
            var builder = new RedisInlineCommandBuilder();

            builder.SetCommand(command);
            return(builder);
        }
Пример #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);
 }
Пример #4
0
        private static RedisInlineCommandBuilder For1Args(string command, string key)
        {
            var builder = new RedisInlineCommandBuilder();

            builder.SetCommand(command);
            builder.AddInlineArgument(key);
            return(builder);
        }
Пример #5
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);
        }
Пример #6
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));
        }
Пример #7
0
 public RedisCommandWithMultiBytes MultiGet(params string[] keys)
 {
     var builder = new RedisInlineCommandBuilder();
     builder.SetCommand("MGET");
     foreach (var key in keys)
     {
         builder.AddInlineArgument(key);
     }
     return new RedisCommandWithMultiBytes(_executor, builder);
 }
Пример #8
0
        private static RedisInlineCommandBuilder For3Args(string command, string key, int v1, int v2)
        {
            var builder = new RedisInlineCommandBuilder();

            builder.SetCommand(command);
            builder.AddInlineArgument(key);
            builder.AddInlineArgument(v1.ToString());
            builder.AddInlineArgument(v2.ToString());

            return(builder);
        }
Пример #9
0
        private static RedisInlineCommandBuilder For3Args(string command, string key, string v1, byte[] data)
        {
            var builder = new RedisInlineCommandBuilder();

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

            return(builder);
        }
Пример #10
0
        public RedisCommandWithMultiBytes MultiGet(params string[] keys)
        {
            var builder = new RedisInlineCommandBuilder();

            builder.SetCommand("MGET");
            foreach (var key in keys)
            {
                builder.AddInlineArgument(key);
            }
            return(new RedisCommandWithMultiBytes(_executor, builder));
        }
Пример #11
0
 private static RedisInlineCommandBuilder For1Args(string command, string key)
 {
     var builder = new RedisInlineCommandBuilder();
     builder.SetCommand(command);
     builder.AddInlineArgument(key);
     return builder;
 }
Пример #12
0
 private static RedisInlineCommandBuilder For0Args(string command)
 {
     var builder = new RedisInlineCommandBuilder();
     builder.SetCommand(command);
     return builder;
 }
Пример #13
0
 public RedisCommand FlushAll()
 {
     var builder = new RedisInlineCommandBuilder();
     builder.SetCommand("FLUSHALL");
     return new RedisCommand(_executor, builder);
 }
Пример #14
0
        private static RedisInlineCommandBuilder For3Args(string command, string key, int v1, int v2)
        {
            var builder = new RedisInlineCommandBuilder();
            builder.SetCommand(command);
            builder.AddInlineArgument(key);
            builder.AddInlineArgument(v1.ToString());
            builder.AddInlineArgument(v2.ToString());

            return builder;
        }
Пример #15
0
        private static RedisInlineCommandBuilder For3Args(string command, string key, string v1, byte[] data)
        {
            var builder = new RedisInlineCommandBuilder();
            builder.SetCommand(command);
            builder.AddInlineArgument(key);
            builder.AddInlineArgument(v1);
            builder.SetData(data);

            return builder;
        }
Пример #16
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;
 }