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")
Currently each
"table"or"collection"creates a new redis connection pool.it would be great if redbase would maintain a single connection pool instead.
for example: