1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-11 10:26:21 +00:00

Add functions to save and delete cache from DataStore

This commit is contained in:
Wolfie 2024-03-10 08:16:50 -04:00
parent 26c71f27dd
commit f1e1d2c2d0
No known key found for this signature in database
GPG key ID: DE384EE9BF2D909A

View file

@ -13,7 +13,10 @@ import { HolyNotes } from "./types";
export async function saveCacheToDataStore(key: string, value?: HolyNotes.Note[]) { export async function saveCacheToDataStore(key: string, value?: HolyNotes.Note[]) {
await DataStore.set(key, value); await DataStore.set(key, value);
}
export async function deleteCacheFromDataStore(key: string) {
await DataStore.del(key);
} }
export async function getFormatedEntries() { export async function getFormatedEntries() {