def test_incr_decr_timeout(self):
"""incr/decr does not modify expiry time (matches memcached behavior)"""
cache = self.cache
key = 'value'
cache.set(key, 1, timeout=10000)
_, exp = cache._get(key)
cache.incr(key)
self.assertEqual(exp, cache._get(key)[1])
cache.decr(key)
self.assertEqual(exp, cache._get(key)[1])
评论列表
文章目录