Skip to content

Commit 1e633d3

Browse files
authored
Merge pull request #108 from vk-outreach/extend
Allow custom command implementations
2 parents 65cf4c3 + eaa0172 commit 1e633d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

miniredis.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ func (m *Miniredis) FastForward(duration time.Duration) {
274274
}
275275
}
276276

277+
// Server returns the underlying server to allow custom commands to be implemented
278+
func (m *Miniredis) Server() *server.Server {
279+
return m.srv
280+
}
281+
277282
// redigo returns a redigo.Conn, connected using net.Pipe
278283
func (m *Miniredis) redigo() redigo.Conn {
279284
c1, c2 := net.Pipe()

0 commit comments

Comments
 (0)