mirror of
https://github.com/elyby/chrly.git
synced 2025-05-31 14:11:51 +05:30
Added new stats reporter to check suitable redis pool size
This commit is contained in:
@@ -243,6 +243,10 @@ func (db *Redis) Ping() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (db *Redis) Avail() int {
|
||||
return db.pool.Avail()
|
||||
}
|
||||
|
||||
func buildUsernameKey(username string) string {
|
||||
return "username:" + strings.ToLower(username)
|
||||
}
|
||||
|
Reference in New Issue
Block a user