package com.janosgyerik.utils.objectstore.api;

import java.io.IOException;
import java.util.Optional;

/**
 * Store key-value pairs in some backend.
 *
 * @param <K> type of keys
 * @param <V> type of values
 */
public interface ObjectStore<K, V> {

    void write(K key, V value) throws StoreWriteException;

    Optional<V> read(K key) throws StoreReadException;
}

@@ -45,36 +45,8 @@
 i;%0A%0A
-import java.io.IOException;%0A
 impo
@@ -250,35 +250,8 @@
 lue)
- throws StoreWriteException
 ;%0A%0A 
@@ -280,34 +280,8 @@
 key)
- throws StoreReadException
 ;%0A%7D%0A

Remove unnecessary throws and imports