mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-03 11:53:41 +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 {
|
func Key(components ...string) string {
|
||||||
components = append(prefix, components...)
|
namespace := strings.Join(prefix, ".")
|
||||||
return strings.Join(components, ".")
|
channel := strings.Join(components, ".")
|
||||||
|
return namespace + "::" + channel
|
||||||
}
|
}
|
||||||
|
|
||||||
func Get(key string) *_redis.StringCmd {
|
func Get(key string) *_redis.StringCmd {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue