(options: ParseServerOptions)
| 107 | } |
| 108 | |
| 109 | export 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 | |
| 119 | export function getParseGraphQLController( |
| 120 | options: ParseServerOptions, |
no test coverage detected