Categorygithub.com/go-helium/redis
modulepackage
0.3.0
Repository: https://github.com/go-helium/redis.git
Documentation: pkg.go.dev

# README

Redis module provides you connection to Redis server

Codecov Build Status Report GitHub release GitHub

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
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

# Functions

NewConnection of redis client.
NewDefaultConfig for connection.

# Constants

ErrEmptyAddresses when given empty addresses.
ErrEmptyConfig when given empty options.
ErrEmptyLogger when logger not initialized.
ErrPemParse when couldn't parse pem in sslrootcert.
ErrSSLKeyHasWorldPermissions when pk permissions no u=rw (0600) or less.

# Variables

Module is default Redis client.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author