diff --git a/internal/redis/namespace.go b/internal/redis/namespace.go index 59596e7..4c6cd39 100644 --- a/internal/redis/namespace.go +++ b/internal/redis/namespace.go @@ -24,6 +24,11 @@ type Namespace struct { ChainID string } +// Create a new key with this namespace. +func (ns Namespace) NewKey(ch ChannelInterface) Key { + return Key{NS: ns, Channel: ch} +} + func (ns Namespace) String() string { // No Chain id, set to "nullChain" if len(ns.ChainID) < 1 {