redigo Questions
2
Solved
How to get all keys of Redis in db and store it in list or array in golang using redigo?
redisPool := redis.NewPool(func() (redis.Conn, error) {
con, err := redis.Dial("tcp", *redisAddress)
con....
4
Solved
using redigo, I create a pool, something like so:
&redis.Pool{
MaxIdle: 80,
MaxActive: 12000, // max number of connections
Dial: func() (redis.Conn, error) {
c, err := redis.Dial("tcp", ho...
2
Connecting to Redigo and manipulating data inside a function is easy like butter, but the problem comes when you have to re-use its connection, obviously for performance/practicality reasons.
Doin...
Cower asked 24/6, 2014 at 13:1
1
Solved
I am prototyping a redis client in golang using the redigo library to get notified of keyspace events. I modified the redis.conf to set the notify-keyspace-events to "KEA" to receive all events. Bu...
2
I have previously been using this:
data, err := redis.Bytes(c.Do("GET", key))
to make sure that data returned is a slice of bytes.
However, I now need to add an extra command to the Redis reque...
1
Solved
I am using the redigo library to try to subscribe to a Redis channel and then handle a published message.
How do I handle the case where it errors out?
Here's what I came up with. Is this a good wa...
1
© 2022 - 2024 — McMap. All rights reserved.