Showing 2 of 2 total issues
Function cache
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const cache: FastifyPluginCallback<ICacheOptions> = (
instance: FastifyInstance,
opts: ICacheOptions,
_next
) => {
Function getApp
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getApp = (options: ICacheOptions = {}) => {
const app = fastify();
app.register(lcache, options);
app.after(() => {