added mongo cache interface from colinmollenhour