(name: string, config: string)
| 71 | |
| 72 | // Added some type casting to make cache-tests a little more typesafe |
| 73 | export function createCacheFromConfig<TCache extends Cache = Cache>(name: string, config: string): TCache { |
| 74 | const result = createInternal(name, config); |
| 75 | logger.info(`Created cache ${name} of type ${result.details}`); |
| 76 | return result as TCache; |
| 77 | } |
no test coverage detected