You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package redis_key
-
- import "strings"
-
- const KEY_SEPARATE = ":"
-
- const EMPTY_REDIS_VAL = "Nil"
-
- func KeyJoin(keys ...string) string {
- var build strings.Builder
- for _, v := range keys {
- build.WriteString(v)
- build.WriteString(KEY_SEPARATE)
- }
- s := build.String()
- s = strings.TrimSuffix(s, KEY_SEPARATE)
- return s
- }
|