github-profile-trophy-reiyu.../deps.ts
Alexandro Castro 614e0453d0
feat: add redis cache (#231)
* feat: add redis cache

* chore: add TTL

* chore: change port
2023-10-04 00:38:18 +09:00

37 lines
760 B
TypeScript

import { Soxa as ServiceProvider } from "https://deno.land/x/soxa@1.4/src/core/Soxa.ts";
import { defaults } from "https://deno.land/x/soxa@1.4/src/defaults.ts";
import {
assertEquals,
assertRejects,
} from "https://deno.land/std@0.203.0/assert/mod.ts";
import {
assertSpyCalls,
returnsNext,
spy,
stub,
} from "https://deno.land/std@0.203.0/testing/mock.ts";
export {
type Bulk,
connect,
type Redis,
} from "https://deno.land/x/redis@v0.31.0/mod.ts";
import { CONSTANTS } from "./src/utils.ts";
const baseURL = Deno.env.get("GITHUB_API") || CONSTANTS.DEFAULT_GITHUB_API;
const soxa = new ServiceProvider({
...defaults,
baseURL,
});
export {
assertEquals,
assertRejects,
assertSpyCalls,
returnsNext,
soxa,
spy,
stub,
};