def METHOD_NAME():
    class TC(GenericCache):
        def new_entry(self, key, value):
            return value
    cache = TC(1)
    cache[0] = 1
    cache[1] = 0
    assert 0 not in cache
    assert 1 in cache
    assert len(cache) == 1