perl-redis icon indicating copy to clipboard operation
perl-redis copied to clipboard

Error: command sent is not an octet sequence in the native encoding - is croak the right way ?

Open ReneBoehm opened this issue 5 years ago • 2 comments

Hi,

we are using this module in our projects and encountered this error a couple of times. The reason is clear to me but IMHO this should not result in a die but a return. Otherwise the whole process dies only because some data could not be cached. Maybe this behaviour should be configurable for those people who are using Redis as some kind of a database and not as a memory cache.

best regards René

ReneBoehm avatar Oct 29 '20 15:10 ReneBoehm

Hi,

returning and not dying would mean that the command is successful though, which would be misleading ? What return mechanism do you propose ?

dams avatar Oct 30 '20 08:10 dams

Maybe an empty (false) return would be sufficient. In this case the "client" can decide whether that's ok or not, in case it's just meant to be cached.

ReneBoehm avatar Nov 01 '20 21:11 ReneBoehm