We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
通过tinygo的配置项SessionSource来配置redis连接, 有以下两种方案:
The text was updated successfully, but these errors were encountered:
方案1在指定外部配置文件时, 难以获取到应用的绝对路径.
Sorry, something went wrong.
介于redis连接的配置项并不多, 直接采用json来书写SessionSource配置项, 结构如下:
type redisConfig struct { Host string MaxIdle int MaxActive int IdleTimeout int // seconds DB int Password string // not authorize if empty Wait bool }
{ "Host": "localhost:6379", "MaxIdle": 3, "MaxActive": 1, "IdleTimeout": 60, "Wait": false, "DB": 2, "Password": "" }
No branches or pull requests
通过tinygo的配置项SessionSource来配置redis连接, 有以下两种方案:
The text was updated successfully, but these errors were encountered: