Redis
12 min
the redis connector integrates with swimlane turbine to get and set the key values in redis platform prerequisites this connector requires the below parameters to authenticate host hostname or ip of redis server port (default is 6379) database database number to use (default 0) password if redis requires authentication socket timeout socket connect timeout socket keep alive socket keep alive options unix socket path encoding encoding errors retry on timeout decode responses retry on error ssl and so on capabilities this connector provides the following capabilities get get a key set set a key configurations asset authenticates redis using host, port and database configuration parameters parameter description type required host hostname or ip address of the redis instance string required port redis port number required database database number to use number required password password if authentication required string optional socket timeout socket timeout number optional socket connect timeout socket connect timeout number optional socket keepalive socket keep alive boolean optional socket keepalive options socket keep alive options array optional unix socket path unix socket path string optional encoding encoding string optional encoding errors encoding errors string optional retry on timeout retry on timeout boolean optional decode responses decode responses boolean optional retry on error retry on error array optional ssl ssl boolean optional ssl keyfile ssl key file string optional ssl certfile ssl certfile string optional ssl cert reqs ssl cert reqs string optional ssl ca certs ssl ca certs string optional ssl ca path ssl ca path string optional ssl ca data ssl ca data string optional ssl check hostname ssl check hostname boolean optional ssl password ssl password string optional ssl validate ocsp ssl validate ocsp boolean optional ssl ocsp context ssl ocsp context string optional actions get return the value at key name, or none if the key doesn’t exist input argument name type required description key string required parameter for get output parameter type description status code number http status code of the response status string status value example \[ { "status code" 200, "status" "ok", "response headers" {}, "json body" {} } ] set set the value at key name to value input argument name type required description key string optional parameter for set value string optional value for the parameter ex number optional set the specified expire time, in seconds px number optional set the specified expire time, in milliseconds nx boolean optional only set the key if it does not already exist xx boolean optional only set the key if it already exists keepttl boolean optional keep time to live get boolean optional if true, set the value at key name to value and return the old value stored at key, or none if the key did not exist exat array optional sets an expire flag on key name for ex seconds, specified in unix time pxat array optional sets an expire flag on key name for ex milliseconds, specified in unix time output parameter type description status code number http status code of the response status string status value example \[ { "status code" 200, "status" "ok", "response headers" {}, "json body" {} } ] notes redis api documentation https //redis py readthedocs io/en/latest/commands html#redis commands core corecommands get