go-dependency-injection-example
redis
Our great sponsors
go-dependency-injection-example | redis | |
---|---|---|
1 | 1 | |
78 | 16,718 | |
- | - | |
0.0 | 9.6 | |
about 6 years ago | about 1 year ago | |
Go | Go | |
- | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-dependency-injection-example
-
How to manage open connections to Redis or any database in general?
IMO you should avoid package level state and use dependency injection to pass the DB reference to your HTTP handlers. I found an example here https://github.com/sohamkamani/go-dependency-injection-example
redis
-
Using Redis Caching and the Redis CLI to Improve API Performance
There are multiple clients available in Go for implementing Redis. However, in this article, we will be using go-redis. Let’s look into how this works with Redis caching.
What are some alternatives?
rueidis - A fast Golang Redis client that supports Client Side Caching, Auto Pipelining, Generics OM, RedisJSON, RedisBloom, RediSearch, etc.
rueidis - A fast Golang Redis client that supports Client Side Caching, Auto Pipelining, Generics OM, RedisJSON, RedisBloom, RediSearch, etc. [Moved to: https://github.com/redis/rueidis]
Hiredis - Minimalistic C client for Redis >= 1.2
badger - Fast key-value DB in Go.
redigo - Go client for Redis
Go-CQRS-Kafka-gRPC-Microservices - Go gRPC Kafka CQRS microservices with tracing
Fiber - ⚡️ Express inspired web framework written in Go
Go-NATS-Streaming-gRPC-PostgreSQL - Go Nats Streaming gRPC PostgerSQL emails microservice
riot - Go Open Source, Distributed, Simple and efficient Search Engine; Warning: This is V1 and beta version, because of big memory consume, and the V2 will be rewrite all code.
mongo-go-driver - The Official Golang driver for MongoDB
undermoon-operator - Kubernetes Operator for Redis cluster based on Undermoon
go-rejson - Golang client for redislabs' ReJSON module with support for multilple redis clients (redigo, go-redis)