'📝更改文档'

This commit is contained in:
coward 2021-12-06 16:20:44 +08:00
parent b42d88f929
commit 1a85edf19a

View File

@ -8,7 +8,7 @@ go get -u github.com/cowardmrx/rds_cache_go
## 使用 ## 使用
```go ```go
var caches = NewCache(WithHost("192.168.0.151"), WithPort("6379"), WithDbname(13)) var caches = NewCache(WithHost("192.168.0.151"), WithPort("6379"), WithDB(13))
// PUT // PUT
err := caches.Put("key1", "va", 1*time.Minute) err := caches.Put("key1", "va", 1*time.Minute)