simple storage helper inspired by the redis api