Hi!

You can fetch values based on multiple keys with get_multi() in
Cache::Memcached. As for CAS, you should take a look at Tomash's
Cache::Memcahed::Fast module.

http://search.cpan.org/~kroki/Cache-Memcached-Fast-0.16/lib/Cache/Memcached/Fast.pm

It provides an interface to both cas and get_multi operations :)

Cheers,
Toru

On Tue, Jul 28, 2009 at 3:44 PM, Bennett Haselton<[email protected]> wrote:
>
> I have a Perl script that uses the Perl Cache::Memcached library and
> uses the set() and get() methods of Cache::Memcached.
>
> According to:
> http://code.google.com/p/memcached/wiki/FAQ#Is_memcached_atomic?
> memcached itself supports the "gets" and "cas" commands, which are
> actually more what I need for my particular application, but the
> http://search.cpan.org/dist/Cache-Memcached/lib/Cache/Memcached.pm
> documentation doesn't mention them.
>
> Is there an existing way to use the memcached "gets" and "cas"
> commands from Perl, without writing my own module to interface to
> memcached directly?
>
>        -Bennett
>
>



-- 
Toru Maesaka <[email protected]>

Reply via email to