Identified in https://github.com/userfrosting/UserFrosting/pull/1147 where this scenario was quite possibly tested for the first time. In essence, Laravel code makes a bad assumption about the behaviour of Redis's SETEX API. The API always casts values into a string, however the Laravel code does not serialize integer values.
Proposed solution here is to extend Illuminate\Cache\RedisStore (and Illuminate\Cache\CacheManager in order to have the extended class used) to replace the numeric specific logic in serialize and unserialize.
Identified in https://github.com/userfrosting/UserFrosting/pull/1147 where this scenario was quite possibly tested for the first time. In essence, Laravel code makes a bad assumption about the behaviour of Redis's
SETEX
API. The API always casts values into a string, however the Laravel code does not serialize integer values.Proposed solution here is to extend
Illuminate\Cache\RedisStore
(andIlluminate\Cache\CacheManager
in order to have the extended class used) to replace the numeric specific logic inserialize
andunserialize
.