Code Monkey home page Code Monkey logo

Comments (4)

badboy avatar badboy commented on June 29, 2024

Good catch. Care to write the documentation? Should be mostly a copy&paste from zrangebylex, right?

from redis-doc.

hostilefork avatar hostilefork commented on June 29, 2024

Well I'm probably not the best person to do it, as I know very little about Redis. But "blame" shows it being added in this commit:

redis/redis@3a6a1e4

Which has a version stamp of 2.9.11. I'd just guess it would be:

"ZREVRANGEBYLEX": {
"summary": "Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.",
"complexity": "O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)).",
"arguments": [
  {
    "name": "key",
    "type": "key"
  },
  {
    "name": "max",
    "type": "string"
  },
  {
    "name": "min",
    "type": "string"
  },
  {
    "command": "LIMIT",
    "name": ["offset", "count"],
    "type": ["integer", "integer"],
    "optional": true
  }
],
"since": "2.9.11",
"group": "sorted_set"
},

Because it looks like the min and max are reversed.

from redis-doc.

badboy avatar badboy commented on June 29, 2024

Thanks. I'll add this as a pull request

from redis-doc.

badboy avatar badboy commented on June 29, 2024

For the rest:

  • latency is handled here: http://redis.io/topics/latency-monitor. We should link to it from the commands page
  • readonly/readwrite should be documented, as they are important when using Cluster
  • pfdebug should be added, it's a debug command after all and can be useful
  • The rest is only for internal/Cluster-related stuff. Not sure if these need user-facing documentation.

from redis-doc.

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.