How to get/set the preference value?

How to get/set the preference value?

BY 30 Oct 2015 Web Code Snippet
■ Summary

If you want to save/load the small data, the preference is the good way.
For using the preference, developer should declare the preference at the config.xml.
Written by