MCPcopy Create free account
hub / github.com/Tencent/MMKV / enableAutoExpire

Function enableAutoExpire

Android/MMKV/mmkv/src/main/cpp/native-bridge.cpp:1092–1098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1090}
1091
1092MMKV_JNI jboolean enableAutoExpire(JNIEnv *env, jobject instance, jint expireDuration) {
1093 MMKV *kv = getMMKV(env, instance);
1094 if (kv) {
1095 return (jboolean) kv->enableAutoKeyExpire(expireDuration);
1096 }
1097 return (jboolean) false;
1098}
1099
1100MMKV_JNI jboolean disableAutoExpire(JNIEnv *env, jobject instance) {
1101 MMKV *kv = getMMKV(env, instance);

Callers

nothing calls this directly

Calls 2

getMMKVFunction · 0.85
enableAutoKeyExpireMethod · 0.45

Tested by

no test coverage detected