handle in and output at only one point

the to handle objects in In- and Output are the same in the RedObject itself and the HashSet.
If the other redisData-types like lists or sets follow, the line will be copy & pasted over and over. 

To put in a nutshell, I moved this lines of code in a static function inside the RedObject.