Clear a value. @param key key value @return prior value @throws IOException on exception
(K key)
| 477 | * @throws IOException on exception |
| 478 | */ |
| 479 | public synchronized V ioUnset(K key) throws IOException { |
| 480 | V p = ioGet(key); |
| 481 | if (p != null) { |
| 482 | append(key, null); |
| 483 | map.remove(key); |
| 484 | } |
| 485 | return p; |
| 486 | } |
| 487 | |
| 488 | /** |
| 489 | * Associate a key to a value |