in reply to Re: Memcached and arrays?
in thread Memcached and arrays?

Upon further investigation it seems the values are being stored correctly. Thus I have no clue why @tmp = $memd->get("mem_id_cache") only returns the reference. This code seems to have worked.
$tmp = $memd->get("mem_id_cache"); @tmp = @{$tmp};

Replies are listed 'Best First'.
Re^3: Memcached and arrays?
by ikegami (Patriarch) on Jan 21, 2010 at 05:43 UTC

    Because that's what you stored.

    Also, @tmp = @{$tmp}; makes a needless copy of the array. Just use $tmp instead of @tmp.