tgstation / rust-g

Rust based libraries for tgstation
MIT License
28 stars 100 forks source link

Add Redis list operation support #129

Closed Wirewraith closed 1 year ago

Wirewraith commented 1 year ago

Pub/sub is great for events if you have something listening, but not so great if you care about a historical record of the data if no one happens to be subscribed at the time. For such a use case, lists are better suited combined with a worker-style implementation via BRPOP.

Would be neat to have the ability to push to, and pop off, lists.

(LPUSH and LRANGE)