mirror of
https://github.com/cowardmrx/rds_cache_go.git
synced 2025-01-19 03:05:56 +08:00
'📝更改文档'
This commit is contained in:
parent
b42d88f929
commit
1a85edf19a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user