Custom cache adapter for Seyfert.
bun add ssca
or pnpm...
pnpm add ssca
import { Client } from "seyfert";
import { SSCAdapter } from "ssca";
const seyfertClient = new Client(); // Create your client.
seyfertClient.setServices({
cache: {
adapter: new SSCAdapter()
}
})
// Synchronize seyfert types to promises
declare module "seyfert" {
interface InternalOptions {
asyncCache: true;
}
}
// That's it! Now you can use Seyfert with your new upgraded cache adapter!
I appreciate contributions a lot, you are welcome to do so! 🥰