{"id":52995,"library":"go-redis-redismock-v8","title":"Redismock v8","description":"A mock library for go-redis v8 to facilitate testing Redis interactions.","status":"active","version":"8.11.5","language":"go","source_language":null,"source_url":"https://github.com/go-redis/redismock","tags":["redis","mock","testing","go-redis"],"install":[{"cmd":"go get github.com/go-redis/redismock/v8","lang":"bash","label":"Install github.com/go-redis/redismock/v8"}],"dependencies":[],"imports":[{"symbol":"redismock","correct":"github.com/go-redis/redismock/v8"}],"quickstart":{"code":"package main\n\nimport (\n\t\"github.com/go-redis/redismock/v8\"\n\t\"github.com/go-redis/redis/v8\"\n)\n\nfunc main() {\n\tdb, mock := redismock.NewClientMock()\n\tmock.ExpectGet(\"key\").SetVal(\"value\")\n\tval, _ := db.Get(ctx, \"key\").Result()\n\tprintln(val)\n}","lang":"go","description":"Create a mock Redis client and set expectations"},"warnings":[],"env_vars":null,"search_vec":"'facilit':12 'go':8,20 'go-redi':7,19 'interact':15 'librari':5 'mock':4,17 'redi':9,14,16,21 'redismock':1 'test':13,18 'v8':2,10","created_at":"2026-06-15T07:23:01.137464+00:00","updated_at":"2026-06-15T07:23:01.137464+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/go-redis/redismock","github":"https://github.com/go-redis/redismock","docs":"https://pkg.go.dev/github.com/go-redis/redismock/v8#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}