use konst::{option, primitive::parse_u64, unwrap_ctx};
use std::time::Duration;
pub const FRIEND_LIST_CACHE_TIME: Duration = Duration::from_secs(unwrap_ctx!(parse_u64(
option::unwrap_or!(option_env!("AWR_FRIEND_LIST_CACHE_TIME"), "3600")
)));
pub const GROUP_CACHE_TIME: Duration = Duration::from_secs(unwrap_ctx!(parse_u64(
option::unwrap_or!(option_env!("AWR_GROUP_CACHE_TIME"), "3600")
)));
pub const GROUP_MEMBER_LIST_CACHE_TIME: Duration = Duration::from_secs(unwrap_ctx!(parse_u64(
option::unwrap_or!(option_env!("AWR_GROUP_MEMBER_LIST_CACHE_TIME"), "3600")
)));