@classmethod<EOL><INDENT>def redis_key(cls, key):<DEDENT>
keyspace = cls.keyspace<EOL>tpl = cls.keyspace_template<EOL>key = "<STR_LIT:%s>" % key if keyspace is None else tpl % (keyspace, key)<EOL>return cls.keyparse.encode(key)<EOL>
Get the key we pass to redis.
If no namespace is declared, it will use the class name.

:param key: str     the name of the redis key
:return: str