Persistence for REST resources in the filesystem or a redis database