alexanderatallah / alexanderatallah/redbase

Reuse redis connection

オープン
#6 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
48
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently each `"table"` or `"collection"` creates a new redis connection pool.
```ts
import { Redbase } from 'redbase'

// Can use strings, numbers or buffers as well
type MyValue = {
// ..
}
const db = new Redbase('myProject', { redisUrl: 'redis://...' })
```

it would be great if redbase would maintain a single connection pool instead.

for example:
```ts
import { Redbase } from 'redbase'

const red = new Redbase({ redisUrl: "redis://..." })

const users = red.newCollection("users")
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。