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....
Ahola asked 17/7, 2015 at 10:24

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...
Humism asked 7/9, 2014 at 8:9

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...
Midden asked 31/3, 2016 at 19:53

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...
Jat asked 29/5, 2015 at 8:39

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...
Cyprinid asked 1/5, 2015 at 13:31
1

© 2022 - 2024 — McMap. All rights reserved.