You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
602 B
26 lines
602 B
const sessionCache = 'vrapile-im-session-cache'
|
|
const localCache = 'vrapile-im-local-cache'
|
|
|
|
export function getSessionCache() {
|
|
return uni.getStorageSync(sessionCache)
|
|
}
|
|
|
|
export function setSessionCache(cache) {
|
|
return uni.setStorageSync(sessionCache, cache)
|
|
}
|
|
|
|
export function removeSessionCache() {
|
|
return uni.removeStorageSync(sessionCache)
|
|
}
|
|
|
|
export function getLocalCache() {
|
|
return uni.getStorageSync(localCache)
|
|
}
|
|
|
|
export function setLocalCache(cache) {
|
|
return uni.setStorageSync(localCache, cache)
|
|
}
|
|
|
|
export function removeLocalCache() {
|
|
return uni.removeStorageSync(localCache)
|
|
}
|