Skip to content

Add RedisClient.get generic overload

Nathan Harris requested to merge generic-get into master

Motivation:

It is wrong to always assume that a GET operation is expecting a String response type, as users may be storing other types of data.

Modifications:

  • Add get generic method with a constraint for types of RESPValueConvertible to convert values to the user desired type
  • Change existing get method to specialize the generic overload
  • Fix incorrect doc block regarding the ELF failure condition

Result:

Users should now be able to specialize the return type of a "GET" command

Merge request reports