Giter VIP home page Giter VIP logo

Comments (6)

djanowski avatar djanowski commented on May 8, 2024

Hi,
You should use zrem in lowercase as it's a Ruby method.
Thanks.

from redis-rb.

grosser avatar grosser commented on May 8, 2024

i already figured that out :D
I meant that it should be either fixed or deprecated, i wasted quiet some time to get to the 'use lowercase' conclusion

from redis-rb.

djanowski avatar djanowski commented on May 8, 2024

I'm really sorry if it made you lose time. I don't think anybody else is calling a Ruby method in an all-caps fashion.

from redis-rb.

grosser avatar grosser commented on May 8, 2024

if you do not think anybody uses it, why are these methods there?
Why not make them private ?

from redis-rb.

djanowski avatar djanowski commented on May 8, 2024

They are not 'there'. The client uses a Ruby technique by which an object can react to methods not explicitly defined in the class (look for method_missing in the code).
So you can also do:
Redis.new.very_funny_command. It won't raise a NoMethodError, but rather it'll try to issue a VERY_FUNNY_COMMAND to Redis.

from redis-rb.

grosser avatar grosser commented on May 8, 2024

hmm seems like there is no way to build around that, thanks for the explanation!

from redis-rb.

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.