marcoCasamento / Hangfire.Redis.StackExchange

HangFire Redis storage based on original (and now unsupported) Hangfire.Redis but using lovely StackExchange.Redis client
Other
452 stars 108 forks source link

Request/ Question: LIFO support #59

Closed AndreSteenbergen closed 6 years ago

AndreSteenbergen commented 7 years ago

I would like to perform actions on a LIFO basis for some queues.

What functions would I need to change and how?

pieceofsummer commented 6 years ago

You probably need to change https://github.com/marcoCasamento/Hangfire.Redis.StackExchange/blob/423df3ce320ec6f2cb51ef6cd314ed4b422c1b4b/Hangfire.Redis.StackExchange/RedisWriteOnlyTransaction.cs#L164 to ListRightPushAsync, depending on queue argument.

AndreSteenbergen commented 6 years ago

Thanks, will try to change according to my needs. I guess I will add something in the config as well, to make it optional.