Comments (7)
Ping? This is still broken :)
from redis-io.
Same thing for INFO
:
from redis-io.
Looks like INFO needs a custom handler. This fixes INFO on my local machine:
diff --git a/lib/interactive/namespace.rb b/lib/interactive/namespace.rb
index 05f4990..fd8ace7 100644
--- a/lib/interactive/namespace.rb
+++ b/lib/interactive/namespace.rb
@@ -36,6 +36,8 @@ module Interactive
end
when :custom
case name.downcase
+ when "info"
+ out = args
when "zunionstore", "zinterstore"
# Destination key
if args.size >= 1
from redis-io.
What's strange is that SCAN
and COMMAND INFO
have no custom handler either but... they just work.
from redis-io.
So, delving deeper into figuring out how all this works...
SCAN
actually has no in-page console outputโeverything there is just pre-formatted output. But, the pre-formatted output looks like the live in-page console. It's misleading. So, there's no bad behavior with in-page SCAN.
Now, COMMAND INFO
is special because the namespace.rb/pattern()
parser is busted. It does args.shift
which takes the first word of the entire in-page command string. So, the parser thinks the entire command COMMAND INFO get set eval
is just COMMAND
with arguments of ["INFO", "get", "set", "eval"]
.
So, technically, COMMAND INFO
should be broken without a custom handler, but it still works.
Mystery 1 solved! We do need the custom case
handler for INFO
, but everything else is either working as designed or broken and still working as intended.
Mystery 2: Why doesn't BITOP
work properly in the web console? BITOP was missing from the custom handler, and it uses three key positions that needed to be registered for namespacing. Console BITOP
support can be enabled with:
diff --git a/lib/interactive/namespace.rb b/lib/interactive/namespace.rb
index 05f4990..b8dd8d3 100644
--- a/lib/interactive/namespace.rb
+++ b/lib/interactive/namespace.rb
@@ -36,6 +36,9 @@ module Interactive
end
when :custom
case name.downcase
+ when "bitop"
+ # Argument positions 1,2,3 are all keys
+ out[1,3] = 3.times.map{:key}
when "zunionstore", "zinterstore"
# Destination key
if args.size >= 1
Mystery 2 solved!
from redis-io.
๐
from redis-io.
๐
from redis-io.
Related Issues (20)
- Redis News / Buzz not updating HOT 2
- No easy way to checksum https://download.redis.io/ HOT 4
- "Illegal" URLs return a full stack trace HOT 2
- Integrate scripts/generate_interactive_commands.rb into auto-deployment
- Client side caching concept page has a minor bug HOT 2
- ZMSCORE command is not supported HOT 3
- Suggestion: add Windows option to /download HOT 4
- STRALGO LCS sytanx spec not accurate
- document that getset kills key expirations HOT 4
- Move IRC channel off Freenode HOT 4
- Bug when specifing "multiple" to a complex command HOT 6
- 504 at http://autocomplete.redis.io/ HOT 3
- Examples not works HOT 1
- Restore STRALGO command reference, indicated support dropped in Redis 7
- ipv6 not supported
- ZMPOP Documentation Example is Faulty
- XREADGROUP reading backlog and new message Ruby code logic issue
- ZRANGESTORE interactive broken
- What is the license for this repository? HOT 1
- REDIS ON WINDOWS DBGHELP.DLL UNCONTROLLED SEARCH PATH
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-io.