In the DS2 redisCli package is not possible to define an expiration time when using the HSET function. It is only possible when using the SETSTRING function. The expiration option is a key feature of Redis that should also be implemented for the Hash objects.