Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion 'Crazy' new commands idea.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nick Quaranto  
View profile  
 More options Oct 28 2010, 8:26 pm
From: Nick Quaranto <n...@quaran.to>
Date: Thu, 28 Oct 2010 20:26:49 -0400
Local: Thurs, Oct 28 2010 8:26 pm
Subject: Re: 'Crazy' new commands idea.

-1 to all of this. Your language's driver can provide this behavior. Let's
keep the protocol and commands simple, Redis is not a programming language.

On Thu, Oct 28, 2010 at 8:24 PM, Xiangrong Fang <xrf...@gmail.com> wrote:
> That's right. Simple is NOT only speed.  If this facility is provided,
> it should be correctly used by those who need it.

> 2010/10/29 qyloxe <qyl...@gmail.com>:
> > Dvir, it seems you missed the point.

> > Please, write the Example 1 in the language of your choice and let it
> > be short, correct, multi-process safe and without timeouts.
> > I dare you, it won't be a "dead simple" code ;-)

> > On 29 Paź, 01:10, Dvir Volk <dvir...@gmail.com> wrote:
> >> Personally I really don't like this direction. What's best about redis
> >> is how dead simple it is, which keeps it easy to work with, and
> >> performing amazingly.
> >> If you want stored procedures you have traditional RDBMS for that. For
> >> me as a (happy) user, this looks like going against the core values
> >> and philosophy of redis.

> >> On Fri, Oct 29, 2010 at 12:46 AM, Xiangrong Fang <xrf...@gmail.com>
> wrote:
> >> > This is the idea of server-side-scripting, or macro commands. I like
> it.

> >> > 2010/10/29 qyloxe <qyl...@gmail.com>:
> >> >> Some 'crazy' ideas. New commands in capital letters:

> >> >> Conditionals:

> >> >> IF operand_type_1 operand_1 operator operand_type_2 operand_2
> >> >> THEN
> >> >>   block
> >> >> ELSE
> >> >>   block

> >> >> operand_type_1,operand_type_2 -> ["key","value","list"...]
> >> >> operator -> ["=",">","<",">=","<=","<>","!=","in","not in",...]

> >> >> block -> single command or:

> >> >> BEGIN
> >> >>   command
> >> >>   command
> >> >>   command
> >> >>   ...
> >> >> END

> >> >> BEGINPROCEDURE proc_name args
> >> >> ENDPROCEDURE

> >> >> CALL proc_name args

> >> >> ====================
> >> >> Example 1:

> >> >> IF key mykey1 = value "xx"
> >> >> THEN
> >> >> BEGIN
> >> >>   SET mykey2 "yy"
> >> >>   INCR mykey3
> >> >> END
> >> >> ELSE
> >> >> BEGIN
> >> >>   SET mykey2 "zz"
> >> >>   DECR mykey3
> >> >> END

> >> >> ====================
> >> >> Example 2:

> >> >> BEGINPROCEDURE myswap key1 key2
> >> >>   SET myswap_temp key1
> >> >>   SET key1 key2
> >> >>   SET key2 myswap_temp
> >> >>   INCR myswap_cnt
> >> >> ENDPROCEDURE

> >> >> CALL myswap mykey1 mykey2
> >> >> CALL myswap mykey2 mykey3

> >> >> ==============================

> >> >> REDIS as a virtual machine - wow!

> >> >> What you think?

> >> >> --
> >> >> You received this message because you are subscribed to the Google
> Groups "Redis DB" group.
> >> >> To post to this group, send email to redis-db@googlegroups.com.
> >> >> To unsubscribe from this group, send email to
> redis-db+unsubscribe@googlegroups.com<redis-db%2Bunsubscribe@googlegroups.c om>
> .
> >> >> For more options, visit this group athttp://
> groups.google.com/group/redis-db?hl=en.

> >> > --
> >> > You received this message because you are subscribed to the Google
> Groups "Redis DB" group.
> >> > To post to this group, send email to redis-db@googlegroups.com.
> >> > To unsubscribe from this group, send email to
> redis-db+unsubscribe@googlegroups.com<redis-db%2Bunsubscribe@googlegroups.c om>
> .
> >> > For more options, visit this group athttp://
> groups.google.com/group/redis-db?hl=en.

> > --
> > You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> > To post to this group, send email to redis-db@googlegroups.com.
> > To unsubscribe from this group, send email to
> redis-db+unsubscribe@googlegroups.com<redis-db%2Bunsubscribe@googlegroups.c om>
> .
> > For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.

> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To post to this group, send email to redis-db@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+unsubscribe@googlegroups.com<redis-db%2Bunsubscribe@googlegroups.c om>
> .
> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.