From the Redis documentation on eval
it says:
should not represent key names
In the Redis cluster tutorial
Hash tags are documented in the Redis Cluster specification, but the gist is that if there is a substring between {} brackets in a key, only what is inside the string is hashed, so for example this{foo}key and another{foo}key are guaranteed to be in the same hash slot, and can be used together in a command with multiple keys as arguments.
Is it possible to just pass the hash tag or perhaps only one key with that hash tag? We would like the contents of eval to work with a dynamic set of keys determine by the contents of another key, but every key would be belong to the same hash tag.