()
| 9 | private delegate: ICache; |
| 10 | |
| 11 | private constructor() { |
| 12 | if (redisUrl) { |
| 13 | this.delegate = RedisCache.getInstance(redisUrl); |
| 14 | } else { |
| 15 | this.delegate = InMemoryCache.getInstance(); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | static getInstance(): Cache { |
| 20 | if (!this.instance) { |
nothing calls this directly
no test coverage detected