Cache¶
flowtask.interfaces.cache
¶
CacheSupport
¶
Bases: ABC
Very Basic Cache Support using Redis
parse_duration
¶
Parse a duration string and return its value in seconds.
Supported formats: - "Xs" for seconds - "Xm" for minutes - "Xh" for hours
setex
async
¶
setex Set the value and expiration of a Key params: key: key Name value: value of the key timeout: expiration time in seconds
setexp
¶
setexp Set the value and expiration of a Key params: key: key Name value: value of the key timeout: expiration time in seconds