An open API service indexing awesome lists of open source software.

https://github.com/go-helium/redis

Redis module provides you connection to Redis server
https://github.com/go-helium/redis

component golang helium module redis redis-client

Last synced: 3 months ago
JSON representation

Redis module provides you connection to Redis server

Awesome Lists containing this project

README

        

# Redis module provides you connection to Redis server

![Codecov](https://img.shields.io/codecov/c/github/go-helium/redis.svg?style=flat-square)
[![Build Status](https://travis-ci.com/go-helium/redis.svg?branch=master)](https://travis-ci.com/go-helium/redis)
[![Report](https://goreportcard.com/badge/github.com/go-helium/redis)](https://goreportcard.com/report/github.com/go-helium/redis)
[![GitHub release](https://img.shields.io/github/release/go-helium/redis.svg)](https://github.com/go-helium/redis)
![GitHub](https://img.shields.io/github/license/go-helium/redis.svg?style=popout)

Module provides you connection to Redis server
- `*redis.Client` is a Redis client representing a pool of zero or more underlying connections. It's safe for concurrent use by multiple goroutineshttps://img.shields.io/circleci/project/github/go-helium/redis.svg?style=flat-square

Configuration:
- yaml example
```yaml
redis:
address: string
password: string
db: int
max_retries: int
min_retry_backoff: duration
max_retry_backoff: duration
dial_timeout: duration
read_timeout: duration
write_timeout: duration
pool_size: int
pool_timeout: duration
idle_timeout: duration
idle_check_frequency: duration
```
- env example
```
REDIS_ADDRESS=string
REDIS_PASSWORD=string
REDIS_DB=int
REDIS_MAX_RETRIES=int
REDIS_MIN_RETRY_BACKOFF=duration
REDIS_MAX_RETRY_BACKOFF=duration
REDIS_DIAL_TIMEOUT=duration
REDIS_READ_TIMEOUT=duration
REDIS_WRITE_TIMEOUT=duration
REDIS_POOL_SIZE=int
REDIS_POOL_TIMEOUT=duration
REDIS_IDLE_TIMEOUT=duration
REDIS_IDLE_CHECK_FREQUENCY=duration
```