alexanderatallah / alexanderatallah/redbase
Reuse redis connection
オープン
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 はまだ評価されていません。