bwlewis/doRedis

export redisKeys

Opened this issue · 2 comments

Would it be possible to export redisKeys() in the doRedis package namespace? It is a useful function to identify orphaned keys to delete on the server, such as those having a name pattern %s.out%s but an old time.

This could be discussed as a separate issue, but is somewhat related. Would you by open to allowing users to set a max expire on the keys, such the .env. and .out. , such that if there is a failure the orphaned keys will eventually be cleaned up? Currently we run a separate process to get the keys and delete them after 10x the expected amount of time a job will take.