# Cache, Sorted Properties and Preference Listener

DevFeed: [Cache, Sorted Properties and Preference Listener](<https://devfeed.tech/articles/cache-sorted-properties-and-preference-listener-19234.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/cache-sorted-properties-preferences-listener/>)

Author: Shai Almog

Published: 2016-12-12T00:00:00Z

Content type: release

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [API](<https://devfeed.tech/topics/api.md>), [Sorting](<https://devfeed.tech/topics/sorting.md>), [observability](<https://devfeed.tech/topics/observability.md>), [Android](<https://devfeed.tech/topics/android.md>), [iOS](<https://devfeed.tech/topics/ios.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [cache](<https://devfeed.tech/tags/cache.md>), [ios](<https://devfeed.tech/tags/ios.md>), [observability](<https://devfeed.tech/tags/observability.md>), [release](<https://devfeed.tech/tags/release.md>), [sorting](<https://devfeed.tech/tags/sorting.md>)

## AI overview

A Codename One release adds access to the operating system caches directory on iOS and Android, sorts saved properties consistently, and introduces a preferences listener for observing individual setting changes. The post also notes that migrated legacy comments are preserved.

## Source excerpt

We've had quite a few interesting features land last week and didn't get a chance to cover them. First we have access to the OS's caches directory where you can store files that you don't really need as cache. Both iOS & Android have such a directory and files stored there might be purged without notice if the OS runs out of space. This is a good place to store files you don't really need such as images or downloads you just need for "right now".