How can I keep a large list in apache memory
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.
> need to run a memcached server  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
> 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.
> : 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
> 050-8536620 / 06-50258350
> nginx mailing list
> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx