def test_redis_cache_info(flush_redis): c = cache.RedisCache() assert c.info() == (0, 0, 0) key = 'key' c.get(key) # miss c.set(key, 'value') c.get(key) # hit assert c.size() == 1 assert c.info() == (1, 1, 1)
def test_redis_cache_info(): c = cache.RedisCache() assert c.info() == (0, 0, 0) key = "key" c.get(key) # miss c.set(key, "value") c.get(key) # hit assert c.size() == 1 assert c.info() == (1, 1, 1)