From 1d09d3291b015d63aa5f7c044a6dd3a9685cbd90 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 26 Sep 2021 01:24:32 +0300 Subject: [PATCH] begin work on some abstractions --- structure/abstractions/CacheHandler.js | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 structure/abstractions/CacheHandler.js diff --git a/structure/abstractions/CacheHandler.js b/structure/abstractions/CacheHandler.js new file mode 100644 index 0000000..d11d7e5 --- /dev/null +++ b/structure/abstractions/CacheHandler.js @@ -0,0 +1,36 @@ +class CacheHandler { + + constructor (client) { + + this.client = client; + + } + + load () { + throw new Error('Not implemented'); + } + + savePersistentCache () { + throw new Error('Not implemented'); + } + + saveModmailHistory () { + throw new Error('Not implemented'); + } + + loadModmailHistory () { + throw new Error('Not implemented'); + } + + get json () { + return { + queue: this.queue, + channels: this.channels, + lastActivity: this.lastActivity, + misc: this.misc + }; + } + +} + +module.exports = CacheHandler; \ No newline at end of file