RTServerApi for extensions
move getCachedEvents() to api