3 ms·
Redis site now implements interactive examples with embedded live Redis cli
- antirez 16y agoThanks to Pieter Noordhuis (that started from the work of Alex McHale in try.redis-db.com) for implementing this awesome thing. I hope other sites will follow this approach of a "live" documentation where the user can type commands. This makes a lot of sense for dynamic programming languages as well.
- nestlequ1k 16y agoamazing! thanks for that. curious, how is this implemented on the server? seems like each command is posted to /session/ url.
- pietern 16y agoAll keys are namespaced to a unique session identifier, so parallel sessions are isolated. You can check out the code for the interactive stuff here: https://github.com/antirez/redis-io/tree/master/lib/interactive https://github.com/antirez/redis-io/tree/master/lib/interact...
- true_religion 16y agoIt's a bit more difficult with programming languages where you can thrash the server its hosted on with simple commands. Redis on the otherhand is designed for exactly this kind of insane throughput. On another note, I'm loving that you are putting the time complexity of the commands right on the page.
- jcromartie 16y agoThis is really incredible. I am showing this to people and they don't quite believe it. They think it's some kind of simulator or JavaScript trick.
- sitmack 16y agoThis is so believably amazing!
- magicseth 16y agoI just ran "MGET key1" and it returned "FOOBAR". Has this happened to anyone else?
- pietern 16y agoSorry about that, just deployed a fix to make it less likely for session identifiers to collide. Shouldn't happen again.