mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-11 02:16:23 +00:00
Add functions to save and delete cache from DataStore
This commit is contained in:
parent
26c71f27dd
commit
f1e1d2c2d0
1 changed files with 3 additions and 0 deletions
|
@ -13,7 +13,10 @@ import { HolyNotes } from "./types";
|
|||
|
||||
export async function saveCacheToDataStore(key: string, value?: HolyNotes.Note[]) {
|
||||
await DataStore.set(key, value);
|
||||
}
|
||||
|
||||
export async function deleteCacheFromDataStore(key: string) {
|
||||
await DataStore.del(key);
|
||||
}
|
||||
|
||||
export async function getFormatedEntries() {
|
||||
|
|
Loading…
Reference in a new issue