-
Notifications
You must be signed in to change notification settings - Fork 142
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
Driver information #53
Comments
The API is limited relative to what some of the drivers are capable of. This can be pretty limiting for users who need to do something bespoke. For example Redis's INCR, SADD, SETBIT. Being able to access the driver directly would be really handy as an escape hatch. (not sure if this issue is just for driver info or driver access itself). I think to implement this, being able to see the driver name as a string would be handy also. const storage = createStorage()
storage.mount('/redis', redisDriver({
base: "/redis:",
}))
// ...
const driver = storage.getDriver('/redis')
// {
// name: 'redis',
// driver: Redis
// } Would you be open to a PR on the above? |
We could support it as |
lgtm! |
It would be nice also to list all the mounts too! |
A new function to return driver status
The text was updated successfully, but these errors were encountered: