public static int[] getLRU() {
        final ArrayList<DataStore.DBExtension> storedValues = getAll(type, null);
        if (storedValues.isEmpty()) {
            return new int[]{};
        }

        final int[] result = new int[Math.min(storedValues.size(), MAX_LRU_LENGTH)];
        int arrayPos = 0;
        for (ListIterator<DataStore.DBExtension> iterator = storedValues.listIterator(storedValues.size()); iterator.hasPrevious(); ) {
            final DataStore.DBExtension element = iterator.previous();
            if (arrayPos < MAX_LRU_LENGTH) {
                result[arrayPos++] = Integer.parseInt(element.getKey());
            } else {
                removeAll(type, element.getKey());
            }
        }
        return result;
    }
returns a list of max MAX_LRU_LENGTH LRU elements
LRU list is truncated in db after MAX_LRU_LENGTH automatically

@return LRU list, in reverse chronological order
main/src/main/java/cgeo/geocaching/storage/extension/EmojiLRU.java