V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
hulk

基于 Go-Redis 之上实现的 Redis 读写分离以及 Sharding 库

  •  
  •   hulk ·
    git-hulk · Feb 25, 2020 · 4474 views
    This topic created in 2255 days ago, the information mentioned may be changed or developed.

    基于 Go-Redis 之上实现的 Redis 读写分离以及 Sharding 库:

    github: https://github.com/meitu/go-redis-pool

    3 replies    2020-02-27 19:17:09 +08:00
    acczefly
        1
    acczefly  
       Feb 26, 2020
    赞, 内部大量使用了吗?
    hulk
        2
    hulk  
    OP
       Feb 26, 2020
    @acczefly 还没有呢,目前个别业务开始引入。不过整体代码比较简单且单元测试覆盖比较完整,没什么问题。
    anttu
        3
    anttu  
       Feb 27, 2020
    go get github.com/meitu/go-redis-pool
    # github.com/meitu/go-redis-pool
    github.com/meitu/go-redis-pool/pool.go:874:18: cannot use conn.cmdable.HSet(key, field, value) (type *redis.IntCmd) as type *redis.BoolCmd in return argument
    github.com/meitu/go-redis-pool/pool.go:954:19: cannot use conn.cmdable.HMSet(key, values...) (type *redis.BoolCmd) as type *redis.IntCmd in return argument

    请问下我下载报这 2 个错误是为啥呢,我以前下载过 redis 的其他包,比如集群、哨兵模式的连接池。 但是不在同一个用户下。 是同名了么?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5357 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:13 · PVG 15:13 · LAX 00:13 · JFK 03:13
    ♥ Do have faith in what you're doing.