collation: Refactor getFirstLetterData() cache handling
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 19 Apr 2016 21:27:22 +0000 (22:27 +0100)
committerKrinkle <krinklemail@gmail.com>
Mon, 9 May 2016 19:02:35 +0000 (19:02 +0000)
commit2a86b5a17a54fcefe8b675c78656c08eb0ed241b
tree9e051e6343bcd580e391734ac5283895e2f528ee
parentf4070a55263311f2f6e1d3a50391ee1aff97d236
collation: Refactor getFirstLetterData() cache handling

* Factor out fetchFirstLetterData() as a separate method.
* Move 'version' into the key instead of checking afterwards.
* Use getWithSetCallback() for the cache handling.
  (Depends on version being in the key).

Change-Id: I15bddf5d1dabcdcef47a938447ba59436bd8a294
includes/collation/IcuCollation.php