robotframework-redislibrary
robotframework-redislibrary copied to clipboard
invalid expire time in set
For redis 3.2.0 calling set_to_redis with expire_time not defined or equal to 0 fails with the following error:
invalid expire time in set
Removing expire_time from redis_conn.set call resolves the issue.
def set_to_redis(self, redis_conn, key, data):
""" Set data to Redis
Arguments:
- redis_conn: Redis connection object
- key: String keyword to find.
- data: String data
Examples:
| ${data}= | Set To Redis | ${redis_conn} | BARCODE|1234567890 | ${data} |
"""
return redis_conn.set(key, data)