package redisrpc
|
|
|
|
import (
|
|
"testing"
|
|
// "time"
|
|
)
|
|
|
|
func Test_Get(t *testing.T) {
|
|
|
|
reply, err := GetString("siteListCache")
|
|
|
|
t.Log(reply)
|
|
t.Log(err)
|
|
}
|
|
|
|
func Test_Set(t *testing.T) {
|
|
|
|
c, err := Set("test", "222", 10)
|
|
t.Log(c)
|
|
t.Log(err)
|
|
|
|
}
|
|
|
|
func Test_Del(t *testing.T) {
|
|
|
|
c, err := Del("test2")
|
|
t.Log(c)
|
|
t.Log(err)
|
|
|
|
}
|