1. A system adapted to receive events from an input stream and produce an output event stream, the system comprising: a computer which includes a microprocessor; an event server including an event processor which executes on the computer, wherein the event processor uses an event processing language (EPL) code to process events, wherein the event server is implemented as part of an event processing network (EPN), and wherein the EPN is defined by an EPN assembly file that indicates a plurality of event sources, event sinks, and stream components and the event processor, which are used to process events; a cache registered as a sink and configured as a listener enabling the cache to receive events published to a stream by an event server application, and store the published events in the cache for use by a plurality of applications in the event server before asynchronously writing the published events to a secondary storage, wherein the EPN assembly file indicates deployment of the cache including whether the cache is local or distributed; a query processor for querying streams to pull data during query evaluation, wherein the cache appears to the query processor as a stream which can be queried to pull data; and an event type repository which registers the cache and a data type of data associated with the published events stored in the cache, and wherein upon registering the cache as a sink, the event type repository indicates that the event processor uses one or more input streams as sources of events.