I had already executed the default start script and it seems to be
running:
memcached -d -p 11211 -u nobody -m 64 -c 1024 -P /var/run/memcached/
memcached.pid
So the next thing I did was build a client and try to get something
very basic working and so based on the sample perl in the danga page
wrote:
#!/usr/bin/perl -w
use Cache::Memcached;
my $id=123;
my $obj=Cache::Memcached->get("foo:$id");
if (defined($obj))
{
print "OBJ: $obj\n";
exit;
}
print "Not There\n";
$obj="This is a string\n";
$return=Cache::Memcached->set("foo::$id", $obj);
print "RETURN: $return\n";
with the theory that the first time I run it the id "foo:123" won't
exist and it will add that to memcached with the value "This is a
string" and the second time find and print it. only thing is it never
finds it. I'm guessing I should be reading more about how to write/
debug a client but I didn't see anything. Of course I may be looking
in the wrong place too.
I also have no idea how a client even finds the servers - no
references to config files, but I was thinking since my initial
testing is on the same box with the server maybe that isn't an issue.
Apparently it is.
-mark