<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.36">
<TITLE>Embperl+Apache::Session::Memcached</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Greetings! I've successfully gotten memcached to function from raw perl, but I'm not succeeding with the Apache::Session::Memcached variant when called from embperl includes.</FONT></P>
<P><FONT SIZE=2 FACE="Courier New">Here's the beginning of my index.epl:</FONT>
<BR><FONT SIZE=2 FACE="Courier New">===================</FONT>
<BR><FONT SIZE=2 FACE="Courier New">[* </FONT>
<BR><FONT SIZE=2 FACE="Courier New"> use Apache;</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> use Apache::Session::Memcached;</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> my %session;</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> tie %session, 'Apache::Session::Memcached', undef, {</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> 'Servers' => ['127.0.0.1:20000'],</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> 'NoRehash' => 1,</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> 'Readonly' => 0,</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> 'Debug' => 1,</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> 'CompressThreshold' => 10_000,</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> };</FONT>
<BR><FONT SIZE=2 FACE="Courier New">*]</FONT>
<BR><FONT SIZE=2 FACE="Courier New"><HTML></FONT>
<BR><FONT SIZE=2 FACE="Courier New"><HEAD></FONT>
<BR><FONT SIZE=2 FACE="Courier New">…</FONT>
<BR><FONT SIZE=2 FACE="Arial">=================</FONT>
<BR><FONT SIZE=2 FACE="Arial">I've tried several variants; this one (which works in raw perl called from command line) has the Servers value enclosed in an anonymous array and all keys quoted, as per the Cache::Memcached module docs. My embperl setup appears to be functioning properly; I can get Apache::Session::File to work using the same tie structure.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">The failure presented is an Apache Internal Server Error:</FONT>
<BR><FONT SIZE=2 FACE="Arial">====================</FONT>
<BR><FONT SIZE=2 FACE="Courier New">[728]ERR: 24: Error in Perl code: Can't locate object method "TIEHASH"</FONT>
<BR><FONT SIZE=2 FACE="Courier New">+ via package "Apache::Session::Memcached" at /var/web/root/index.epl </FONT>
<BR><FONT SIZE=2 FACE="Courier New">+line 10.</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">[728]ERR: 24: index.epl(1): Error in Perl code:</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">Apache/1.3.33 (Unix) mod_perl/1.29 PHP/5.0.0a6-alexdupre HTML::Embperl</FONT>
<BR><FONT SIZE=2 FACE="Courier New">+ 1.3.6 [Thu Mar 3 06:49:48 2005]</FONT>
<BR><FONT SIZE=2 FACE="Arial">====================</FONT>
<BR><FONT SIZE=2 FACE="Arial">Thanks in advance!</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">--</FONT>
<BR><FONT SIZE=2 FACE="Arial">Don Wilde </FONT>
<BR><FONT SIZE=2 FACE="Arial">Org 1737, MS1076, 844-1126</FONT>
<BR><FONT SIZE=2 FACE="Arial">dwilde@sandia.gov</FONT>
</P>
</BODY>
</HTML>