A week ago, I wrote a Cache::Memcached mock module for some complicated unit tests in this project I'm working on.
A few people asked to upload it to CPAN, so here it is:
Cache::Memcached::Mock v0.01 is on CPAN.
I didn't spend that much time polishing it and making documentation, so it's a bit rough around the edges, but you get the idea.
You can use it as a drop-in replacement for Cache::Memcached
when you don't want, or can't afford, to run your own memcached daemon.
I've already got a feature request from a colleague: making sure set()
fails if you try to store a value bigger than 1Mb.