Future objects are usually returned when invoking methods in a pipeline or transaction.
The return value is only available when the EXEC command has been applied to the Redis server. With redis-rb, this means you must exit the pipeline or several blocks earlier.
If you want to select / read data, do this before the multi / exec block and only write to the multi / exec block.
By the way, it is more efficient to use $ redis.sunion () to generate a server-side result.
source share