mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-17 04:30:03 +02:00
internal/redis/wrapper.go: in Key() used "::" as a separator between namespace and channel.
This commit is contained in:
parent
dcb1e173a2
commit
42da179c74
1 changed files with 3 additions and 2 deletions
|
|
@ -37,8 +37,9 @@ func SetPrefix(components ...string) {
|
|||
}
|
||||
|
||||
func Key(components ...string) string {
|
||||
components = append(prefix, components...)
|
||||
return strings.Join(components, ".")
|
||||
namespace := strings.Join(prefix, ".")
|
||||
channel := strings.Join(components, ".")
|
||||
return namespace + "::" + channel
|
||||
}
|
||||
|
||||
func Get(key string) *_redis.StringCmd {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue