MCPcopy Index your code
hub / github.com/directus/directus / cache.ts

File cache.ts

api/src/middleware/cache.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { useEnv } from '@directus/env';
2import { toBoolean } from '@directus/utils';
3import type { RequestHandler } from 'express';
4import { getCache, getCacheValue } from '../cache.js';

Callers

nothing calls this directly

Calls 14

useEnvFunction · 0.90
toBooleanFunction · 0.90
asyncHandlerFunction · 0.85
useLoggerFunction · 0.85
getEntitlementManagerFunction · 0.85
shouldSkipCacheFunction · 0.85
getCacheKeyFunction · 0.85
getCacheValueFunction · 0.85
getCacheControlHeaderFunction · 0.85
useBufferedCounterFunction · 0.85
isEntitledMethod · 0.80
incrementMethod · 0.65

Tested by

no test coverage detected