On this page:
current-redis-client
current-redis-pool

19 Simplified API

 (require redis/easy) package: redis-lib

The redis/easy module re-provides all the bindings documented in the previous sections except modified to implicitly read a client from either current-redis-client or current-redis-pool.

For example, instead of

(define pool (make-redis-pool))
(call-with-redis-client pool
  (lambda (c)
   (redis-bytes-get c "some-key")))

you can write

(current-redis-pool (make-redis-pool))
(redis-bytes-get "some-key")

parameter

(current-redis-client)  redis?

(current-redis-client client)  void?
  client : redis?
 = #f

parameter

(current-redis-pool)  redis-pool?

(current-redis-pool pool)  void?
  pool : redis-pool?
 = #f
Parameters implicitly used by the bindings exported from redis/easy. The current-redis-client parameter takes precedence over the current-redis-pool parameter if set.