1

I'm looking for a caching library for Android.

It must:

  • be memory-based
  • support serialization/deserialization so it can be persisted on application shutdown
  • support time-based eviction
  • support creating custom eviction policies (e.g. to support update after custom events)
  • have small footprint (because we are targeting Android)
  • max JDK 8 (because of Android)
  • well tested

Guava's LoadingCache does not support custom eviction policies and does not support serialization.

Caffeine seems promising but has pretty large footprint (740KB)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.