memcached
memcached copied to clipboard
Testing expiration times with Timecop?
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.