Exemplo n.º 1
0
        //<configSections>
        //<section name="redisConfig" type="PXLib.Caches.Redis.RedisConfigInfo,PXLib" />
        //</configSections>
        //<redisConfig WriteServerList="192.168.1.103:6379" ReadServerList="192.168.1.103:6379" MaxWritePoolSize="60" MaxReadPoolSize="60" AutoStart="true" LocalCacheTime="600" RecordeLog="false" />

        public static RedisConfigInfo GetConfig()
        {
            RedisConfigInfo section = (RedisConfigInfo)ConfigurationManager.GetSection("redisConfig");

            return(section);
        }