Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RedisClient"/> class.
        /// </summary>
        /// <param name="endpoint">The Redis endpoint.</param>
        /// <param name="options"><see cref="RedisClientOptions"/></param>
        public RedisClient(IPEndPoint endpoint, RedisClientOptions options = null)
            : this(new[] { endpoint }, options)
        {
            ParameterGuard.CannotBeNull(endpoint, "endpoint");

            _endpoints = new[] { endpoint };
        }
Exemple #2
0
        internal RedisResults(RESPObject[] responses, String[] commandHeaders = null)
        {
            ParameterGuard.CannotBeNull(responses, "responses");

            _responses = responses;
            _results   = new RedisResultInspector[_responses.Length];
        }