You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package db
|
|
|
|
import (
|
|
"github.com/mediocregopher/radix/v3"
|
|
)
|
|
|
|
func GetFromKey(key string, target interface{}) error {
|
|
return DB.Redis.Do(radix.FlatCmd(target, "GET", key))
|
|
}
|
|
|
|
func SetKeyVal(key string, val interface{}) error {
|
|
return DB.Redis.Do(radix.FlatCmd(nil, "SET", key, val))
|
|
}
|