robotframework-redislibrary icon indicating copy to clipboard operation
robotframework-redislibrary copied to clipboard

invalid expire time in set

Open dzieciou opened this issue 6 years ago • 0 comments

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)

dzieciou avatar Feb 18 '19 16:02 dzieciou