Sign in Go Pro

Event Bus

Caching Data with Sticky Events

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Previous

About

When using an Event Bus you may occasionally have events that contain data that is useful after the event has been posted. You can take advantage of Sticky events to act as a simple caching solution in this scenarios. Learn all about it in this lesson! In this lesson you will learn: - How to post a Sticky event - How to automatically receive a Sticky event - How to manually retrieve a Sticky event - How to remove Sticky events Source Code: EventBus Sample: https://github.com/CasterIO/StickyEventsExample Links: GreenRobot’s EventBus: http://greenrobot.org/eventbus/documentation/configuration/sticky-events/

Instructor

Links

Lessons in Event Bus