expresspotato has asked for the wisdom of the Perl Monks concerning the following question:
All it does is print ARRAY(0x1b316c0)ARRAY(0x1e82f48)ARRAY(0x19913a0) If I inspect what was actually stored in memcache:use Cache::Memcached::Fast; $memd = new Cache::Memcached::Fast({ servers => [ { address => 'localhost:11211', weight => 2.5 } ], namespace => 'abc:', connect_timeout => 0.2, io_timeout => 1.0, close_on_error => 1, compress_threshold => 100_000, compress_ratio => 0.9, compress_algo => 'deflate', max_failures => 3, failure_timeout => 2, ketama_points => 100, nowait => 0, serialize_methods => [ \&Storable::freeze, \&Storable::thaw ], utf8 => ($^V >= 5.008001 ? 1 : 0), }); $memd->flush_all; @array = (1,2,3,4); $memd->set("mem_id_cache",\@array); @tmp = $memd->get("mem_id_cache"); foreach (@tmp){ print $_; }
Help on this is much appreciated.telnet localhost 11211 get abc: mem_id_cache VALUE abc:mem_id_cache 1 32 + + 12345678 1 2 3 4 END
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Memcached and arrays?
by ikegami (Patriarch) on Jan 21, 2010 at 05:37 UTC | |
by BrowserUk (Patriarch) on Jan 21, 2010 at 05:59 UTC | |
by ikegami (Patriarch) on Jan 21, 2010 at 06:17 UTC | |
by expresspotato (Beadle) on Jan 21, 2010 at 06:05 UTC | |
by BrowserUk (Patriarch) on Jan 21, 2010 at 06:13 UTC | |
by expresspotato (Beadle) on Jan 21, 2010 at 06:03 UTC | |
by ikegami (Patriarch) on Jan 21, 2010 at 06:22 UTC | |
|
Re: Memcached and arrays?
by ww (Archbishop) on Jan 21, 2010 at 04:28 UTC | |
by expresspotato (Beadle) on Jan 21, 2010 at 05:31 UTC | |
by ikegami (Patriarch) on Jan 21, 2010 at 05:43 UTC | |
by expresspotato (Beadle) on Jan 21, 2010 at 05:18 UTC |