Skip to content

Commit

Permalink
cache dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
saiteja-madha committed Sep 21, 2021
1 parent f0a6353 commit 9f89656
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 61 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"ejs": "^3.1.6",
"express": "^4.17.1",
"express-session": "^1.17.2",
"ffmpeg-static": "^4.4.0",
"fixedsize-map": "^1.0.1",
"fs": "0.0.1-security",
"iso-639-1": "^2.1.9",
"module-alias": "^2.2.2",
Expand Down
4 changes: 2 additions & 2 deletions src/schemas/counter-schema.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const mongoose = require("mongoose");
const { CACHE_SIZE } = require("@root/config.js");
const { FixedSizeCache } = require("@src/structures");
const FixedSizeMap = require("fixedsize-map");

const cache = new FixedSizeCache(CACHE_SIZE.GUILDS);
const cache = new FixedSizeMap(CACHE_SIZE.GUILDS);

const Schema = mongoose.Schema({
_id: {
Expand Down
4 changes: 2 additions & 2 deletions src/schemas/greeting-schema.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const mongoose = require("mongoose");
const { CACHE_SIZE } = require("@root/config.js");
const { FixedSizeCache } = require("@src/structures");
const FixedSizeMap = require("fixedsize-map");

const cache = new FixedSizeCache(CACHE_SIZE.GUILDS);
const cache = new FixedSizeMap(CACHE_SIZE.GUILDS);

const Schema = mongoose.Schema({
_id: {
Expand Down
4 changes: 2 additions & 2 deletions src/schemas/guild-schema.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const mongoose = require("mongoose");
const { CACHE_SIZE, PREFIX } = require("@root/config.js");
const { FixedSizeCache } = require("@src/structures");
const FixedSizeMap = require("fixedsize-map");

const cache = new FixedSizeCache(CACHE_SIZE.GUILDS);
const cache = new FixedSizeMap(CACHE_SIZE.GUILDS);

const Schema = mongoose.Schema({
_id: {
Expand Down
53 changes: 0 additions & 53 deletions src/structures/cache.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/structures/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
const FixedSizeCache = require("./cache");
const Command = require("./command");
const BotClient = require("./BotClient");

module.exports = {
BotClient,
Command,
FixedSizeCache,
};

0 comments on commit 9f89656

Please sign in to comment.