go-redis / redismock

Redis client Mock
https://redis.uptrace.dev
BSD 2-Clause "Simplified" License
284 stars 63 forks source link

feat: Add SELECT command. #77

Open Crystalix007 opened 1 year ago

Crystalix007 commented 1 year ago

Depends on https://github.com/redis/go-redis/pull/2680.

Adds expectations for the SELECT command, which changes the connection's currently selected DB. Note that this only means anything on redis.Clients, not redis.ClusterClient.