I'm using memcached 1.8.0 with Rails and I'm wondering if there's an example of using Timecop to test the expiration of a key or do I have to rely on sleep? I was thinking of using Rspec's mocking ability but then I wouldn't really be testing my memcached layer.
I'm using memcached 1.8.0 with Rails and I'm wondering if there's an example of using Timecop to test the expiration of a key or do I have to rely on
sleep
? I was thinking of using Rspec's mocking ability but then I wouldn't really be testing my memcached layer.