/// <summary>
        /// 设置配置信息
        /// </summary>
        /// <param name="internalConfiguration">配置信息</param>
        /// <returns></returns>
        public Response AddOrReplace(IInternalConfiguration internalConfiguration)
        {
            var key = _options.RedisKeyPrefix + "-internalConfiguration";

            RedisHelper.Set(key, internalConfiguration.ToJson());
            return(new OkResponse());
        }
        /// <summary>
        /// 从缓存中获取配置信息
        /// </summary>
        /// <returns></returns>
        public Response <IInternalConfiguration> Get()
        {
            var key    = _options.RedisKeyPrefix + "-internalConfiguration";
            var result = RedisHelper.Get <InternalConfiguration>(key);

            if (result != null)
            {
                return(new OkResponse <IInternalConfiguration>(result));
            }

            if (_internalConfiguration != null)
            {
                RedisHelper.Set(key, _internalConfiguration.ToJson());
                return(new OkResponse <IInternalConfiguration>(_internalConfiguration));
            }
            return(new OkResponse <IInternalConfiguration>(default(InternalConfiguration)));
        }