Energy Patterns for Mobile Apps

← show all patterns

Cache

Cache

Avoid performing unnecessary operations by using cache mechanisms.

Context

Typically mobile apps present data to users that is collect from a remote server. However, it may happen that the same data is being collected from the server multiple times.

Solution

Implement caching mechanisms to temporarily store data from server. In addition, verify whether there is an update before downloading all data.

Example

Consider a social network app that shows other users' profiles. Instead of downloading basic information and profile pictures every time a given profile is opened, use data that was locally stored from earlier visits.

References

Occurrences

Android

Issues
Pull Requests
Commits

iOS

Issues
Pull Requests
Commits