prefect_redis.tasks
Prebuilt Prefect tasks for reading and writing data to Redis
Functions
redis_set
cloudpickle to convert value to binary representation.
Args:
credentials: Redis credential blockkey: Key to be setvalue: Value to be set tokey. Does not accept open connections such as database-connectionsex: If provided, sets an expire flag in seconds onkeysetpx: If provided, sets an expire flag in milliseconds onkeysetnx: If set toTrue, set the value atkeytovalueonly if it does not already existxx: If set totTrue, set the value atkeytovalueonly if it already exists
redis_set_binary
credentials: Redis credential blockkey: Key to be setvalue: Value to be set tokey. Must be bytesex: If provided, sets an expire flag in seconds onkeysetpx: If provided, sets an expire flag in milliseconds onkeysetnx: If set toTrue, set the value atkeytovalueonly if it does not already existxx: If set totTrue, set the value atkeytovalueonly if it already exists
redis_get
credentials: Redis credential blockkey: Key to get
- Fully reconstructed object, decoded brom bytes in redis
redis_get_binary
credentials: Redis credential blockkey: Key to get
- Bytes from
keyin Redis
redis_execute
credentials: Redis credential blockcmd: Command to be executed
- Command response