HMSET id1 x 1 y 2 z 3 text "hkjh"
HMSET id2 x 5 y 2 z 13 text "hkjsfsdh"
HMSET id3 x 5 y 2 z 11 text "hkjsfsdqsdqh"
HMSET id4 x 7 y 2 z 12 text "hkjsfsqsdsqddh"
// how to find all elements such that 4 < x < 6 and 10 < z < 13
//* The presence (or lack thereof) of the first slash determines whether or not the code is run
... Some Code ...
//*/
Anyone else ever use this trick?
@Greg good stuff. another tip, I don't know what you intended for the onreadystatechange checks but if you're targeting modern browsers you can do request.onload = function(results) {
Also @Basj I guess the redis client for node would do some of the parsing for you. So unless you have like 10 billion records or something, there is no issue in letting the node client handle the filtering, imo.
Anyways, if there were 10 billion records, you won't be using redis.
To do it, because the lambda is turned into a method on the surrounding class, they promote the variables it uses via "closure" to be fields on the class as well.
The (huge) restriction is that you can only use final fields/vars.
I just think how they went about implementing the new features was interesting, in large part because it's incredibly efficient (compared to how JS handles closure).
@BenjaminGruenbaum Until I would be able to run C# under linux without a performance penalty or some magic translation voodoo, I still won't be able to say that I "like" C#.
@SterlingArcher Indirectly, yes. You're asking to be notified of something, either in a larger scope (when the user clicks...) or very specifically (I'm calling you, tell me when you're done).