Subject: | use setex instead of set optionally |
hiya, looking at
https://github.com/rentrak/chi-driver-redis/blob/6efc4c57accf38ae4642171bc30ff6e80458b83b/lib/CHI/Driver/Redis.pm#L136
You could replace ->set with ->setex if an expiry is set. I'd have a config param for that option ( default false ) because that feature was introduced in redis as some point. I can work on a patch and PR in github, just wanted to get your thought before proceeding.
Thanks!
-Sam