<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY><!-- Converted from text/plain format -->
<P><FONT size=2><FONT face=Arial>Memcache is great for a lot of things, but I
think something like <A
href="http://www.outoforder.cc/projects/apache/mod_log_sql/">mod_log_sql</A>
(assuming you're using Apache) would be a lot more appropriate for what you're
trying to accomplish here. Your write to read ratio is going to
be 10000:1 and you're going to want the data to persist (believe me
the first time a marketing jockey walks in and says "...how many hits have we
had in the last year?" you'll be glad you had the
data) Additionally, at some point in time you're going to want to be
able to do complex lookups that require grouping/having clauses, etc... If
you're going to be checking this data on every page request I'd still suggest
you write to some sort of RDBM and cache the response (possibly using memcache)
so long as the results don't need to be up to the second
accurate.</FONT></FONT></P>
<P><FONT size=2><FONT face=Arial>Good luck,<BR><BR><FONT color=#808080
size=1>Darryl Kuhn<BR>Chief Technology
Officer<BR>Skinit.com</FONT></FONT></FONT></P>
<P><FONT size=2><FONT face=Arial><FONT color=#808080 size=1></FONT><FONT
color=#808080 size=1></FONT><FONT color=#808080 size=1></FONT><FONT
color=#808080 size=1></FONT><FONT color=#808080 size=1></FONT><FONT
color=#808080 size=1></FONT><FONT color=#808080 size=1></FONT><FONT
color=#808080 size=1></FONT><FONT color=#808080 size=1></FONT><FONT
color=#808080 size=1></FONT><BR><BR>-----Original Message-----<BR>From:
memcached-bounces@lists.danga.com [</FONT><A
href="mailto:memcached-bounces@lists.danga.com"><FONT
face=Arial>mailto:memcached-bounces@lists.danga.com</FONT></A><FONT face=Arial>]
On Behalf Of Jed Reynolds<BR>Sent: Monday, December 04, 2006 1:20 PM<BR>To:
Brian Moon<BR>Cc: memcached@lists.danga.com<BR>Subject: Re: How to get all the
keys from servers?<BR><BR>Brian Moon wrote:<BR>> Jed Reynolds
wrote:<BR>>> I'd have a use for a method to get all keys as well. For
instance, if<BR>>> I wanted to store all the IPs that hit my webserver,
and how many<BR>>> times,<BR>><BR>> Isn't that what web logs are
for?<BR>><BR>Grepping, awking and sorting thru gigs of logfiles isn't as
quick as I'd like it to be. I've also considered piping apache logs thru
syslog-ng and running it thru a filter. There's a lot of ways to analyze
traffic.<BR>Memcache might fill a need pretty easily. Otherwise I'd have to
write a PHP daemon or something and have to deal with sockets and timing out
data and that's hardly worth the
distraction.<BR><BR>Jed<BR><BR></P></FONT></FONT></BODY></HTML>