package
0.0.0-20241211204005-80236ea41692
Repository: https://github.com/dhanielsales/go-api-template.git
Documentation: pkg.go.dev

# Functions

ComposeKey concatenates multiple strings into a single Redis key, using ":" as a separator.
New initializes a new Storage instance with the given Redis client and verifies the connection.
NewMockRedisClient creates a new mock instance.
WithTx executes a Redis transaction with retry logic, allowing for concurrent-safe operations.

# Constants

Maximum number of retries for a transaction.

# Variables

No description provided by the author

# Structs

MockRedisClient is a mock of RedisClient interface.
MockRedisClientMockRecorder is the mock recorder for MockRedisClient.
Storage encapsulates a Redis client, providing methods for initialization and cleanup.

# Interfaces

RedisClient defines an interface for interacting with a Redis database.