mirror of
https://github.com/Tencent/MMKV.git
synced 2026-10-16 20:21:12 +08:00
Fix one-year expiration constants
This commit is contained in:
@@ -1527,7 +1527,7 @@ public class MMKV implements SharedPreferences, SharedPreferences.Editor {
|
||||
public static final int ExpireInHour = 60 * 60;
|
||||
public static final int ExpireInDay = 24 * 60 * 60;
|
||||
public static final int ExpireInMonth = 30 * 24 * 60 * 60;
|
||||
public static final int ExpireInYear = 365 * 30 * 24 * 60 * 60;
|
||||
public static final int ExpireInYear = 365 * 24 * 60 * 60;
|
||||
|
||||
/**
|
||||
* Enable auto key expiration. This is a upgrade operation, the file format will change.
|
||||
|
||||
@@ -891,7 +891,7 @@ export class MMKV {
|
||||
public static readonly ExpireInHour = 60 * 60;
|
||||
public static readonly ExpireInDay = 24 * 60 * 60;
|
||||
public static readonly ExpireInMonth = 30 * 24 * 60 * 60;
|
||||
public static readonly ExpireInYear = 365 * 30 * 24 * 60 * 60;
|
||||
public static readonly ExpireInYear = 365 * 24 * 60 * 60;
|
||||
|
||||
/**
|
||||
* Enable auto key expiration. This is a upgrade operation, the file format will change.
|
||||
|
||||
@@ -79,7 +79,7 @@ const (
|
||||
MMKV_Expire_Hour = 60 * 60
|
||||
MMKV_Expire_Day = 24 * 60 * 60
|
||||
MMKV_Expire_Month = 30 * 24 * 60 * 60
|
||||
MMKV_Expire_Year = 365 * 30 * 24 * 60 * 60
|
||||
MMKV_Expire_Year = 365 * 24 * 60 * 60
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -335,7 +335,7 @@ class MMKV {
|
||||
static const int ExpireInHour = 60 * 60;
|
||||
static const int ExpireInDay = 24 * 60 * 60;
|
||||
static const int ExpireInMonth = 30 * 24 * 60 * 60;
|
||||
static const int ExpireInYear = 365 * 30 * 24 * 60 * 60;
|
||||
static const int ExpireInYear = 365 * 24 * 60 * 60;
|
||||
|
||||
/// [expireDurationInSecond] override the default duration setting from [enableAutoKeyExpire()].
|
||||
/// * Passing [MMKV.ExpireNever] (aka 0) will never expire.
|
||||
|
||||
@@ -37,7 +37,7 @@ typedef NS_ENUM(UInt32, MMKVExpireDuration) {
|
||||
MMKVExpireInHour = 60 * 60,
|
||||
MMKVExpireInDay = 24 * 60 * 60,
|
||||
MMKVExpireInMonth = 30 * 24 * 60 * 60,
|
||||
MMKVExpireInYear = 365 * 30 * 24 * 60 * 60,
|
||||
MMKVExpireInYear = 365 * 24 * 60 * 60,
|
||||
};
|
||||
|
||||
// all-in-one configuration for creating MMKV instance
|
||||
|
||||
Reference in New Issue
Block a user