• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Cameri / nostr-ts-relay / 3763964114

pending completion
3763964114

Pull #96

github

GitHub
Merge b2fcbdf3d into ab86a6565
Pull Request #96: feat: merkle tree and proofs

310 of 393 branches covered (78.88%)

Branch coverage included in aggregate %.

6 of 14 new or added lines in 2 files covered. (42.86%)

76 existing lines in 8 files now uncovered.

749 of 940 relevant lines covered (79.68%)

7.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

40.0
/src/cache/client.ts
1
import { createClient, RedisClientOptions } from 'redis'
1✔
2
import { CacheClient } from '../@types/cache'
3

4
export const getCacheConfig = (): RedisClientOptions => ({
1✔
5
  url: `redis://${process.env.REDIS_USER}:${process.env.REDIS_PASSWORD}@${process.env.REDIS_HOST}:${process.env.REDIS_PORT}`,
6
  password: process.env.REDIS_PASSWORD,
7
})
8

9
let instance: CacheClient | undefined = undefined
1✔
10

11
export const getCacheClient = (): CacheClient => {
1✔
UNCOV
12
  if (!instance) {
×
UNCOV
13
    const config = getCacheConfig()
×
14

UNCOV
15
    instance = createClient(config)
×
16
  }
17

UNCOV
18
  return instance
×
19
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc