MCPcopy
hub / github.com/parse-community/parse-server / getCacheController

Function getCacheController

src/Controllers/index.js:109–117  ·  view source on GitHub ↗
(options: ParseServerOptions)

Source from the content-addressed store, hash-verified

107}
108
109export function getCacheController(options: ParseServerOptions): CacheController {
110 const { appId, cacheAdapter, cacheTTL, cacheMaxSize } = options;
111 const cacheControllerAdapter = loadAdapter(cacheAdapter, InMemoryCacheAdapter, {
112 appId: appId,
113 ttl: cacheTTL,
114 maxSize: cacheMaxSize,
115 });
116 return new CacheController(cacheControllerAdapter, appId);
117}
118
119export function getParseGraphQLController(
120 options: ParseServerOptions,

Callers 2

constructorMethod · 0.90
getControllersFunction · 0.85

Calls 1

loadAdapterFunction · 0.90

Tested by

no test coverage detected