当前位置:网站首页>程序员如何快速开发高质量的代码?
程序员如何快速开发高质量的代码?
2022-04-23 18:36:00 【InfoQ】
如何做到文档落实?
如何逻辑思维清晰?
rdb := redis.NewClient(&redis.Options{
Addr: "127.0.0.1:6379",
Password: "test", // no password set
DB: 19, // use default DB
})
t,err := rdb.Set("key", "value", 0).Result()
if err != nil {
panic(err)
}
fmt.Println(t, err)
t1,err := rdb.SetNX("key0", "value", 0).Result()
if err != nil {
panic(err)
}
fmt.Println(t1, err)
t2,err := rdb.HSet("key1", "value","xxx99999").Result()
if err != nil {
panic(err)
}
fmt.Println(t2, err)
深入原理
版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://xie.infoq.cn/article/5855917112e12a6259748f64d
边栏推荐
- Machine learning practice - naive Bayes
- The first leg of the national tour of shengteng AI developer creation and enjoyment day was successfully held in Xi'an
- Daily CISSP certification common mistakes (April 13, 2022)
- Error reported when running tensorboard: valueerror: duplicate plugins for name projector, solution
- Daily network security certification test questions (April 18, 2022)
- ctfshow-web361(SSTI)
- Const keyword, variable and function are decorated with const
- ESP32 LVGL8. 1 - BTN button (BTN 15)
- Halo open source project learning (VII): caching mechanism
- CISSP certified daily knowledge points (April 14, 2022)
猜你喜欢
Use of regular expressions in QT
玻璃体中的硫酸软骨素
机器学习实战 -朴素贝叶斯
Promote QT default control to custom control
【数学建模】—— 层次分析法(AHP)
listener. log
STM32学习记录0008——GPIO那些事1
Differences between SSD hard disk SATA interface and m.2 interface (detailed summary)
硬核解析Promise對象(這七個必會的常用API和七個關鍵問題你都了解嗎?)
ESP32 LVGL8. 1 - label (style 14)
随机推荐
机器学习实战 -朴素贝叶斯
ESP32 LVGL8. 1 - anim animation (anim 16)
Ionic 从创建到打包指令集顺序
ctfshow-web362(SSTI)
Test questions of daily safety network (February 2024)
Daily network security certification test questions (April 18, 2022)
Ctfshow - web362 (ssti)
Halo open source project learning (VII): caching mechanism
Daily CISSP certification common mistakes (April 15, 2022)
STM32: LCD显示
Kettle paoding jieniu Chapter 17 text file output
【ACM】455. Distribute Biscuits (1. Give priority to big biscuits to big appetite; 2. Traverse two arrays with only one for loop (use subscript index -- to traverse another array))
Imx6 debugging LVDS screen technical notes
关于unity文件读取的操作(一)
Daily network security certification test questions (April 15, 2022)
listener. log
【ACM】509. 斐波那契数(dp五部曲)
STM32: LCD display
串口调试工具cutecom和minicom
STM32 learning record 0008 - GPIO things 1