Abstracts away getting and setting of key-values