feat: define DEFAULT_CACHE_TTLS

This commit is contained in:
Adhiraj Singh
2023-02-21 11:44:11 +05:30
parent 80b9e74066
commit 090c916f9f
3 changed files with 13 additions and 6 deletions

View File

@@ -99,4 +99,11 @@ export const MEDIA_KEYS = Object.keys(MEDIA_PATH_MAP) as MediaType[]
export const MIN_PREKEY_COUNT = 5
export const INITIAL_PREKEY_COUNT = 30
export const INITIAL_PREKEY_COUNT = 30
export const DEFAULT_CACHE_TTLS = {
SIGNAL_STORE: 5 * 60, // 5 minutes
MSG_RETRY: 60 * 60, // 1 hour
CALL_OFFER: 5 * 60, // 5 minutes
USER_DEVICES: 5 * 60, // 5 minutes
}