How do I cache with the ElementAPI plugin? I'm replacing some templates with the ElementAPI plugin.

In my templates, I would use the cache tag, and rely on Craft to handle invalidation when the elements changed.

How can I achieve a similar thing now that I'm using the ElementAPI plugin?
The ElementAPI plugin itself doesn't seem to offer a caching solution, but there is a fork from a guy which has implemented a caching option cache and cacheTime:
https://github.com/theolampert/ElementAPI

Update: They have introduced a new cache option in the official ElementAPI plugin (version 1.5).