partial implementation of events cache