def METHOD_NAME():
    cache = LRUCache(4)
    assert cache.hits == 0
    assert cache.misses == 0
    try:
        cache["foo"]
    except KeyError:
        assert cache.hits == 0
        assert cache.misses == 1
    cache["foo"] = 1
    assert cache.hits == 0
    assert cache.misses == 1
    cache["foo"]
    cache["foo"]
    assert cache.hits == 2
    assert cache.misses == 1
    cache.get("bar")
    assert cache.hits == 2
    assert cache.misses == 2
    cache.get("foo")
    assert cache.hits == 3
    assert cache.misses == 2
    assert str(cache) == "<LRUCache size=1 maxsize=4 hits=3 misses=2>"