android-components / mozilla.components.service.fretboard / ExperimentStorage

ExperimentStorage

interface ExperimentStorage (source)

Represents a location where experiments are stored locally on the device

Functions

Name Summary
retrieve abstract fun retrieve(): ExperimentsSnapshot
Reads experiments from disk
save abstract fun save(snapshot: ExperimentsSnapshot): Unit
Stores the given experiments to disk

Inheritors

Name Summary
FlatFileExperimentStorage class FlatFileExperimentStorage : ExperimentStorage
Class which uses a flat JSON file as an experiment storage mechanism