Ai
2 Star 1 Fork 0

wzshiming/ssdb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cmd_server.go 564 Bytes
一键复制 编辑 原始数据 按行查看 历史
wzshiming 提交于 2018-05-16 18:24 +08:00 . update commit
package ssdb
// Auth password
// Available since: 1.7.0.0
// Authenticate the connection.
// Warning: The password is sent in plain-text over the network!
func (c *Client) Auth(password string) error {
return c.doNil("auth", password)
}
// DBSize Return the approximate size of the database, in bytes. If compression is enabled, the size will be of the compressed data.
func (c *Client) DBSize() (int64, error) {
return c.doInt("dbsize")
}
// Info Return information about the server.
func (c *Client) Info() ([]string, error) {
return c.doStrings("info")
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/wzshiming/ssdb.git
git@gitee.com:wzshiming/ssdb.git
wzshiming
ssdb
ssdb
master

搜索帮助