next-shared-cache
next-shared-cache copied to clipboard
Add example for `ioredis` package
The ioredis
package has a different API than redis
. A new page is needed to guide migration between these two packages.
I would not recommend to copy the description from two other lib's documentations. Leads to confusion if the library would change.
Instead I would argue it's more effective for you and the users if we'd describe a schema for initializing, storing and retrieving data. Through a generic description, other storage solutions could become viable as well.
Look at the Creating a Custom Handler guide to learn how to build a handler for ioredis or any other Redis client.