Skip to content

Comments

return redis list objects too, converted into json list#749

Open
sseide wants to merge 1 commit intokelseyhightower:masterfrom
sseide:redis_list_values
Open

return redis list objects too, converted into json list#749
sseide wants to merge 1 commit intokelseyhightower:masterfrom
sseide:redis_list_values

Conversation

@sseide
Copy link

@sseide sseide commented Sep 20, 2018

Currently redis objects of type "list" are ignored.

This patch converts redis lists into json lists (strings) to be available within the templating engine via "jsonArray (getv (...)". As other backends like consul does not support other types than strings this can be used to have interchangeable backends while using native datatype support of the backend.

As this is my very first try in GO there may things be done in a better way probably...

p.s. reformatting was done automatically by IntelliJ or some other tool, dont now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant