Commits

Nikhil Marathe committed a3bf08c

Added close function to close a redis connection cleanly

  • Participants
  • Parent commits e2d7a6b

Comments (0)

Files changed (1)

       nil
       (list redis sock ""))))
 
+(define (redis:close r)
+  (:quit r)
+  (net-close (r 1) true))
+
 (define (redis:query r command-str)
   (net-send (r 1) (append command-str redis:CRLF))
   (net-receive (r 1) buf redis:BUFSIZE)