Coffee needs to be stored in an air tight container and kept in a cool dry place. Coffee is freshest and will yield the best flavor if used within a week of purchasing. You should always try to buy the amount you will utilize in a weeks time.
If you choose to buy more beans then you will use in a week, you should store the beans in small batches in air tight containers.