This commit is contained in:
Cadence Fish
2020-01-15 03:38:33 +13:00
parent b5f163891c
commit 30b45c2573
17 changed files with 157 additions and 26 deletions

View File

@@ -5,7 +5,7 @@ const InstaCache = require("./cache")
const {User} = require("./structures")
require("./testimports")(constants, request, extractSharedData, InstaCache, User)
const cache = new InstaCache(600e3)
const cache = new InstaCache(constants.resource_cache_time)
function fetchUser(username) {
return cache.getOrFetch("user/"+username, () => {