MCPcopy Create free account
hub / github.com/fastify/fastify / cache

Method cache

lib/content-type.js:65–65  ·  view source on GitHub ↗

* The shared cache of ContentType instances. The cache is used to avoid * creating multiple instances of ContentType for the same header value. * @type {Lru }

()

Source from the content-addressed store, hash-verified

63 * @type {Lru<ContentType>}
64 */
65 static get cache () { return cache }
66
67 /**
68 * Create a ContentType instance from a header value. If the value has been

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected