"""


class BaseKeyValueStorage(object):
    """
    The storage of key-values.
    """
    def add(self, category, key, value=None):
        """
        Add a new attribute. If the key already exists, raise an exception.

        Args:
            category: (string, int) the category of data.
            key: (string) attribute's key.