示例#1
0
文件: god_cli.go 项目: rhino1998/god
func prevIndex(conn *client.Conn, args []string) {
	if key, value, index, existed := conn.PrevIndex([]byte(args[1]), *(mustAtoi(args[2]))); existed {
		fmt.Printf("%v: %v => %v\n", index, string(key), decode(value))
	}
}