| 67 | } |
| 68 | |
| 69 | void UpdateCharge(int key, int charge) { |
| 70 | auto handle(cache_->Lookup(EncodeInt(key), Cache::NO_UPDATE)); |
| 71 | cache_->UpdateCharge(handle, charge); |
| 72 | } |
| 73 | |
| 74 | // Insert a key with the give value and charge. Return whether the insert was |
| 75 | // successful. |