- Go Web Development Cookbook
- Arpit Aggarwal
- 104字
- 2021-08-27 19:01:21
Getting ready…
As we have already created a session variable in our previous recipe using the Gorilla cookie store, we will just extend this recipe to save session information in Redis rather than maintaining it on the server.
There are multiple implementations of the Gorilla session store, which you can find at https://github.com/gorilla/sessions#store-implementations. As we are using Redis as our backend store, we will be using https://github.com/boj/redistore, which depends on the Redigo Redis library to store a session.
This recipe assumes you have Redis and Redis Browser installed and running locally on ports 6379 and 4567 respectively.
推薦閱讀
- 廣電5G從入門到精通
- 面向物聯(lián)網(wǎng)的CC2530與傳感器應(yīng)用開發(fā)
- 物聯(lián)網(wǎng)(IoT)基礎(chǔ):網(wǎng)絡(luò)技術(shù)+協(xié)議+用例
- Twilio Cookbook
- 面向云平臺(tái)的物聯(lián)網(wǎng)多源異構(gòu)信息融合方法
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見:2015年中國(guó)互聯(lián)網(wǎng)安全大會(huì)文集
- 基于性能的保障理論與方法
- 網(wǎng)絡(luò)設(shè)計(jì)與應(yīng)用(第2版)
- 網(wǎng)管工具使用與技巧大全
- jQuery Mobile Web Development Essentials
- 無線傳感器網(wǎng)絡(luò)定位技術(shù)
- 5G技術(shù)核心與增強(qiáng):從R15到R17
- 5G非正交多址接入技術(shù):理論、算法與實(shí)現(xiàn)
- 物聯(lián)網(wǎng)M2M開發(fā)技術(shù):基于無線CPU-Q26XX
- 計(jì)算機(jī)通信網(wǎng)絡(luò)安全