I'm trying to use redis in my Nuxt app. But I'm not sure what's the best practice to use it. Such as where should I create the redis client, how should I share the redis client instance.
I tried the useStorage which is introduced in the Nuxt document, but I can't use redis specific commands such as HGET . So I think the only way is to create redis client. I searched online but it seems like the best way is to create a singleton of the instance? Is there any better way of doing this?
Thanks for helping!