trim method

void trim()

Trim the file size to minimal.

  • MMKV's size won't reduce after deleting key-values.
  • Call this method after lots of deleting if you care about disk usage.
  • Note that clearAll() has the similar effect.

Implementation

void trim() {
  _trim(_handle);
}