W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
?gredis
?采用接口化設(shè)計(jì),具有強(qiáng)大的靈活性和擴(kuò)展性。
https://pkg.go.dev/github.com/gogf/gf/v2/database/gredis#Adapter
// SetAdapter sets custom adapter for current redis client.
func (r *Redis) SetAdapter(adapter Adapter)
// GetAdapter returns the adapter that is set in current redis client.
func (r *Redis) GetAdapter() Adapter
由于?gredis
?組件的接口實(shí)現(xiàn)是高階功能,一般來(lái)說(shuō)開發(fā)者也無(wú)需替換?Redis
?接口實(shí)現(xiàn)。感興趣的朋友可以自行研究。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: