You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// expire in a day
mmkv.enableAutoKeyExpire(MMKV.ExpireInDay); // MMKV.ExpireInDay = 24 * 60 * 60
// enable auto key expiration without global duration
mmkv.enableAutoKeyExpire(MMKV.ExpireNever); // MMKV.ExpireNever = 0
And support set function parameter uint32_t expireDuration
The totalSize() of an MMKV instance won't reduce after deleting key-values, call this method after lots of deleting if you care about disk usage. Note that clearAll() has a similar effect.
MMKV provide function (Global Expiration)
And support
set
function parameter uint32_t expireDurationBut not seen in this library.
I hope
react-native-mmkv
can support those feature.The text was updated successfully, but these errors were encountered: