vapor / redis

Vapor provider for RediStack
MIT License
458 stars 57 forks source link

Add Key Expiration to Encodable Set #187

Closed waltertyree closed 3 years ago

waltertyree commented 3 years ago

I would like to add a setex to RedisClient+Codable.swift to enable the user to be able to set their encoded entity with an expiration in one step. Currently it takes two steps as the basic set in the extension doesn't support an expiration time.

I have a PR, but the guidelines appear to say I to open an issue first, so I am doing that.

0xTim commented 3 years ago

Yep this seems like a valuable addition