From f1e1d2c2d0bdace4b39217a4f4cc2bf195d2dc41 Mon Sep 17 00:00:00 2001 From: Wolfie <32025746+Wolfkid200444@users.noreply.github.com> Date: Sun, 10 Mar 2024 08:16:50 -0400 Subject: [PATCH] Add functions to save and delete cache from DataStore --- src/plugins/holynotes/utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/holynotes/utils.ts b/src/plugins/holynotes/utils.ts index 003a8cdd5..520fb2f28 100644 --- a/src/plugins/holynotes/utils.ts +++ b/src/plugins/holynotes/utils.ts @@ -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() {