dapphp / securimage

PHP CAPTCHA Script
https://github.com/dapphp/securimage
BSD 2-Clause "Simplified" License
568 stars 190 forks source link

Redis setTimeout is deprecated consider changing to expire #110

Closed jlchassaing closed 2 years ago

jlchassaing commented 2 years ago

Hy, In the Securimage\StorageAdapter\Redis class on line : https://github.com/dapphp/securimage/blob/aabde76d839d75a238970661187f83312c2eeda7/StorageAdapter/Redis.php#L51

the setTimeout method is deprecated. consider changing it to expire

dapphp commented 2 years ago

Hey jl,

Thanks for pointing that out. Code in the nextgen branch has been updated to use expires if it is available, otherwise setTimeout will be used in older versions.