How can I keep a large list in apache memory
James Matthews
nytrokiss at gmail.com
Tue Mar 9 23:08:51 MSK 2010
Is there a reason why you don't want to use a database?
On Tue, Mar 9, 2010 at 4:37 AM, Markus Jelsma <markus at buyways.nl> wrote:
> Storing data in memcache can be done from almost any language available.
> You
> need to run a memcached server [1] somewhere and connect to it from some
> program. Then you can simply set key/value pairs.
>
> A PHP example:
> $m = new Memcache('host');
> $m->set('key', 'value');
>
> If you set all your user/IP pairs in the cache, you can then retrieve them
> in
> your Nginx config. Make sure you have the memc module compiled in. It would
> also be a good idea to compile the eval module; with it, you can store the
> value in a variable.
>
> Then, using that value (the IP address), you can select your backend.
>
> [1]: http://memcached.org/
>
> On Tuesday 09 March 2010 13:19:04 ramprasad_ap wrote:
> > Can you give me an example how to store an array in memcache
> >
> > I am quiet new to ngnix , Do I require any extramodules or is memcache
> > always a part of nignx
> >
> > Posted at Nginx Forum:
> > http://forum.nginx.org/read.php?2,61798,61812#msg-61812
> >
> >
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://nginx.org/mailman/listinfo/nginx
> >
>
> Markus Jelsma - Technisch Architect - Buyways BV
> http://www.linkedin.com/in/markus17
> 050-8536620 / 06-50258350
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
--
http://www.miami-criminallaw.com
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100309/30c41cdf/attachment.html>
More information about the nginx
mailing list