fermyon / spin-js-sdk

https://developer.fermyon.com/spin/javascript-components
Apache License 2.0
52 stars 18 forks source link

add templates for redis #286

Closed karthik2804 closed 2 weeks ago

karthik2804 commented 2 weeks ago

This should probably be merged after #287 and bump the versions in the templates.

karthik2804 commented 2 weeks ago

Are we okay with expecting a user to implement the class and export an object? If not, we could potentially add a spin.ts as we do for the http templates and wrap all that up where the user can just export one function.

radu-matei commented 2 weeks ago

Given they're technically part of the same SDK, I'd like the two to be consistent.

karthik2804 commented 2 weeks ago

One part I would like to note though is that - the http handler uses the built in fetchEvent while redis and anything else would end up using generated bindings.