How to enable cache for a custom widget?

How to enable the cache for custom widget?

If you are developer of the widget, then it is up to you to decide what to cache and how to cache, and nobody can prevent you from caching, so to Ā«enableĀ» it just use it.