MCPcopy Create free account
hub / github.com/encoder-run/operator / getRedisearchClient

Function getRedisearchClient

cmd/repositoryembedder/main.go:558–564  ·  view source on GitHub ↗
(opts *redis.Options, index string)

Source from the content-addressed store, hash-verified

556}
557
558func getRedisearchClient(opts *redis.Options, index string) *redisearch.Client {
559 pool := &redigoredis.Pool{Dial: func() (redigoredis.Conn, error) {
560 return redigoredis.Dial("tcp", opts.Addr, redigoredis.DialPassword(opts.Password))
561 }}
562
563 return redisearch.NewClientFromPool(pool, index)
564}
565
566func createIndex(r *redisearch.Client, ns string) error {
567 // Create a schema for the index

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected