Cross-client memcached compatibility

Larry Leszczynski larryl at
Sun Feb 3 17:00:18 UTC 2008

Hi Tomash -

On Sun, 3 Feb 2008, Tomash Brechko wrote:

> Current interface for, say, Perl, is
>  $memd->set('key', $data);
> If $data is a reference, a hook is called.  How would you specify
> which serialization method to use?  With one hook, I can think of,
> say,
>  $memd->set('key', [$data_ref, $selected_method]);

Not sure I understand - what if $data is an array ref, where I expect 
the whole thing to get serialized?  I.e. how would the hook 
distinguish $data which is an array ref I want entirely serialized vs 
$data which is an array ref where one element of the array is a 
serialization method?


More information about the memcached mailing list