Giter Site home page Giter Site logo

Comments (3)

nnhy avatar nnhy commented on July 28, 2024

的确有这样的问题,后面可以改正,你也可以提交PR

from newlife.redis.

lepon avatar lepon commented on July 28, 2024
            var connStr = ConfigurtaionUtils.Configuration["RedisConnectionStr"];
            IDictionary<string, string> dict = connStr.SplitAsDictionary();
            var rds = new Redis();
            rds.Server = dict["server"];
            rds.Password = dict["password"];
            rds.Db = int.Parse(dict["db"]);
            return rds;

我目前是这样做的。密码由于其他原因不能需改

from newlife.redis.

nnhy avatar nnhy commented on July 28, 2024

##X组件核心库已修正该BUG!NewLifeX/X@2e7b696

另外,根据你的描述,可以考虑用这个方法:
`
public override void Init(String config)
{
if (config.IsNullOrEmpty()) return;

var dic = config.SplitAsDictionary("=", ";", true);
if (dic.Count > 0)
{
    Server = dic["Server"];
    Password = dic["Password"];
    Db = dic["Db"].ToInt();
}

}
`

from newlife.redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.