If it is a simple key->value relationship then a hashtable or even nosql database is best. However, it sounds like you are storing a key->(value,value,value,value), in this case i would use a sql database, although this is not relational. The key would be your primary key, it doesn't have to be an INTEGER
it could be any datatype. You must make sure that your key column is at least UNIQUE
although setting it as your primary key will do this automatically, or you could run into problems.
If this is more of a tree structure you might not want to use a sql database. If yo could give an example of the data you want to store and its relationships i can give you a better answer. With the information I have, I'd use sqlite.