Skip to main content
Module

x/hypixel/Client.ts>BasicCache

With thorough IntelliSense support & 100% test coverage, this is an unopinionated async/await API wrapper for Hypixel's Public API. It is developed in TypeScript complete with documentation, typed interfaces for all API responses (and an OpenAPI 3.0 schema!), built-in rate-limit handling, flexible cache support, helper functions, and support for undocumented endpoints.
Latest
interface BasicCache
import { type BasicCache } from "https://deno.land/x/hypixel@v3.1.1/Client.ts";

If you want built in caching, implementing these methods (or utilitizing an library that includes these methods) is a must. Refer to the cache guide.

Methods

get<T extends Components.Schemas.ApiSuccess>(key: string): Promise<(T & DefaultMeta) | undefined>
set<T extends Components.Schemas.ApiSuccess>(key: string, value: T & DefaultMeta): Promise<void>