ServiceStack.Redis.RedisNativeClient.ClientKill C# (CSharp) Method

ClientKill() public method

public ClientKill ( string addr = null, string id = null, string type = null, string skipMe = null ) : long
addr string
id string
type string
skipMe string
return long
        public long ClientKill(string addr = null, string id = null, string type = null, string skipMe = null)
        {
            var cmdWithArgs = new List<byte[]>
           	{
           		Commands.Client, Commands.Kill,
           	};

            if (addr != null)
            {
                cmdWithArgs.Add(Commands.Addr);
                cmdWithArgs.Add(addr.ToUtf8Bytes());
            }

            if (id != null)
            {
                cmdWithArgs.Add(Commands.Id);
                cmdWithArgs.Add(id.ToUtf8Bytes());
            }

            if (type != null)
            {
                cmdWithArgs.Add(Commands.Type);
                cmdWithArgs.Add(type.ToUtf8Bytes());
            }

            if (skipMe != null)
            {
                cmdWithArgs.Add(Commands.SkipMe);
                cmdWithArgs.Add(skipMe.ToUtf8Bytes());
            }

            return SendExpectLong(cmdWithArgs.ToArray());
        }

Same methods

RedisNativeClient::ClientKill ( string clientAddr ) : void
RedisNativeClient