File: README.md

package info (click to toggle)
golang-github-bsm-pool 0.8.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 88 kB
  • sloc: makefile: 14
file content (20 lines) | stat: -rw-r--r-- 823 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Pool

[![GoDoc](https://godoc.org/github.com/bsm/pool?status.svg)](https://godoc.org/github.com/bsm/pool)
[![Build Status](https://travis-ci.org/bsm/pool.png?branch=master)](https://travis-ci.org/bsm/pool)
[![Go Report Card](https://goreportcard.com/badge/github.com/bsm/pool)](https://goreportcard.com/report/github.com/bsm/pool)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

A simple connection pool for Go.

Features:

* Thread-safe (obviously)
* Stack based (rather than queue based) - connections that have been used recently are more likely to be re-used again
* Supports shirinking - idle pool connections can be reaped

## Credits

* https://github.com/PurpureGecko/go-lfc
* https://github.com/fatih/pool
* https://github.com/go-redis/redis