示例 1输入capacity=2; put(1,10); put(2,20); get(1); put(3,30); get(2)输出get(1) -> 10; get(2) -> -1读取键 1 后,键 2 成为最久未使用的项。