New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose ping
method for @shopify/shopify-app-session-storage-redis
#724
Comments
If there is approval for this request, we can provide a PR for it |
That sounds like a good idea to me. Another option that might also work and that would give apps more freedom would be the ability to pass in a client like: import {createClient} from 'redis';
import {RedisSessionStorage} from '@shopify/shopify-app-session-storage-redis';
const client = createClient( ... );
const storage = new RedisSessionStorage(client, { ... }); Since we only use the Which do you think would work better here? |
I agree that supporting client passing would overall provide the most flexibility and is generally a viable solution for the issue at hand. |
We'll be tracking this issue, but it might be a little bit until we can implement this. If you'd like to contribute with a PR, it'd be most welcome! |
@paulomarg Sure, we'll pick it up. Thank you for the reply! |
Overview
Since Redis client for
@shopify/shopify-app-session-storage-redis
is private, there is no easy and cheap way to perform a healthcheck for the Redis connectivity of it.It would be great if there was a
ping()
method exposed, which would invokeping()
on a client and return an object of this structure:The text was updated successfully, but these errors were encountered: