Patent attributes
An event-driven-cache service receives a request from a client to establish a cache. In response, the event-driven-cache service registers a cache function in an event-driven compute service and defines events that trigger the cache function in the event-driven compute service. The event-driven compute service receives a request to get data from or set data to the cache. In response to the request, the event-driven compute service sends event information to a selected container and the container launches the cache function. For a set request, the cache function adds data to a dedicated persistent storage of the container. For a get request, the cache function determines whether requested data is valid in the dedicated persistent storage and returns the data or a miss indication to the client. Upon completion of the request, the container terminates the cache function and the data remains in the dedicated persistent storage of the container.