Giter Site home page Giter Site logo

Comments (2)

sinclairtarget avatar sinclairtarget commented on August 18, 2024

Just checked—this definitely isn't an issue in version 0.17.1:

irb(main):001:0> $redis
=> #<MockRedis:0x007fda302407e0 @options={:scheme=>"redis", :host=>"", :port=>0, :path=>nil, :timeout=>5.0, :password=>nil, :db=>0, :time_class=>Time, :connect_timeout=>nil, :read_timeout=>nil, :write_timeout=>nil}, @db=#<MockRedis::PipelinedWrapper:0x007fda30240330 @db=#<MockRedis::TransactionWrapper:0x007fda30240380 @db=#<MockRedis::ExpireWrapper:0x007fda302403a8 @db=#<MockRedis::MultiDbWrapper:0x007fda30240588 @db_index=0, @prototype_db=#<MockRedis::Database:0x007fda30240538 @base=#<MockRedis:0x007fda302407e0 ...>, @data={}, @expire_times=[]>, @databases={0=>#<MockRedis::Database:0x007fda30240650 @base=#<MockRedis:0x007fda302407e0 ...>, @data={}, @expire_times=[]>}>>, @transaction_futures=[], @in_multi=false, @multi_block_given=false>, @pipelined_futures=[], @in_pipeline=false>>
irb(main):002:0> $redis.zadd('myzset', 10, 10)
=> true
irb(main):003:0> $redis.zadd('myzset', 20, 20)
=> true
irb(main):004:0> $redis.zadd('myzset', 30, 30)
=> true
irb(main):005:0> $redis.zrange('myzset', 0, -4)
=> []

from mock_redis.

sds avatar sds commented on August 18, 2024

Fixed by #132. Thanks for the report!

from mock_redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.