redbase
                                
                                
                                
                                    redbase copied to clipboard
                            
                            
                            
                        Reuse redis connection
Currently each "table" or "collection" creates a new redis connection pool.
import { Redbase } from 'redbase'
// Can use strings, numbers or buffers as well
type MyValue = {
  // ..
}
const db = new Redbase<MyValue>('myProject', { redisUrl: 'redis://...' })
it would be great if redbase would maintain a single connection pool instead.
for example:
import { Redbase } from 'redbase'
const red = new Redbase({ redisUrl: "redis://..." })
const users = red.newCollection<User>("users")