search

Home  >  Q&A  >  body text

入门Redisredis set 数据不一致问题

127.0.0.1:6379> SMEMBERS proxy;
(empty list or set)
127.0.0.1:6379> SCARD proxy
(integer) 3
127.0.0.1:6379> SMEMBERS proxy;
(empty list or set)

刚入门Redis,请各位指教。SCARD值大为3, 为什么SMEMBERS显示的是empty

怪我咯怪我咯2799 days ago576

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-21 11:20:46

    SMEMBERS proxy;
    

    Don’t add a semicolon proxy and proxy; are different sets

    reply
    0
  • Cancelreply