Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #15754 > unrolled thread

redis beginner question

Started byJabba Laci <jabba.laci@gmail.com>
First post2011-11-16 03:22 +0100
Last post2011-11-16 09:37 -0500
Articles 4 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  redis beginner question Jabba Laci <jabba.laci@gmail.com> - 2011-11-16 03:22 +0100
    Re: redis beginner question Roy Smith <roy@panix.com> - 2011-11-15 22:11 -0500
      Re: redis beginner question Jabba Laci <jabba.laci@gmail.com> - 2011-11-16 14:09 +0100
        Re: redis beginner question Roy Smith <roy@panix.com> - 2011-11-16 09:37 -0500

#15754 — redis beginner question

FromJabba Laci <jabba.laci@gmail.com>
Date2011-11-16 03:22 +0100
Subjectredis beginner question
Message-ID<mailman.2758.1321410156.27778.python-list@python.org>
Hi,

I'm reading the redis documentation and there is one thing that
bothers me. For redis, you need to start a server on localhost. Is
there an easy way that my Python script starts this server
automatically? Before using my script, I don't want to start
redis-server each time. When my program terminates, the server could
be shut down automatically.

Thanks,

Laszlo

[toc] | [next] | [standalone]


#15756

FromRoy Smith <roy@panix.com>
Date2011-11-15 22:11 -0500
Message-ID<roy-1D1ED2.22114815112011@news.panix.com>
In reply to#15754
In article <mailman.2758.1321410156.27778.python-list@python.org>,
 Jabba Laci <jabba.laci@gmail.com> wrote:

> Hi,
> 
> I'm reading the redis documentation and there is one thing that
> bothers me. For redis, you need to start a server on localhost. Is
> there an easy way that my Python script starts this server
> automatically? Before using my script, I don't want to start
> redis-server each time. When my program terminates, the server could
> be shut down automatically.
> 
> Thanks,
> 
> Laszlo

Why do you want to stop redis after your program terminates?  Generally, 
you just start redis up when the system boots and leave it running.

[toc] | [prev] | [next] | [standalone]


#15769

FromJabba Laci <jabba.laci@gmail.com>
Date2011-11-16 14:09 +0100
Message-ID<mailman.2766.1321449007.27778.python-list@python.org>
In reply to#15756
> Why do you want to stop redis after your program terminates?  Generally,
> you just start redis up when the system boots and leave it running.

Hi,

OK, so it's more like MySQL or PostgeSQL, i.e. leave the server
running in the background. I wanted to use it like SQLite, i.e. let it
run only when I need it.

Laszlo

[toc] | [prev] | [next] | [standalone]


#15774

FromRoy Smith <roy@panix.com>
Date2011-11-16 09:37 -0500
Message-ID<roy-8F1618.09370916112011@news.panix.com>
In reply to#15769
In article <mailman.2766.1321449007.27778.python-list@python.org>,
 Jabba Laci <jabba.laci@gmail.com> wrote:

> > Why do you want to stop redis after your program terminates?  Generally,
> > you just start redis up when the system boots and leave it running.
> 
> Hi,
> 
> OK, so it's more like MySQL or PostgeSQL, i.e. leave the server
> running in the background.

That's how I would treat it.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web