(as-pubsub {:keys [redis-client codec]})
(create-client-resource options-map)
You can create an instance of client resources in a clojuresque way; check out the class io.lettuce.core.resource.ClientResources for details.
It is useful to configure "plumbing" of client side redis connections such as: Netty threads, metrics, etc. But also it is good to have it for sharing the same NIO layer across multiple connections.
Currently only the number of threads are implemented. Also, you can call it without any param or with an empty map and it will create a default client resource, but that can be shared across client connections.
You can create an instance of client resources in a clojuresque way; check out the class io.lettuce.core.resource.ClientResources for details. It is useful to configure "plumbing" of client side redis connections such as: Netty threads, metrics, etc. But also it is good to have it for sharing the same NIO layer across multiple connections. Currently only the number of threads are implemented. Also, you can call it without any param or with an empty map and it will create a default client resource, but that can be shared across client connections.
(destroy-client-resource client-resources)
If you create a client resource, you must close/dispose it; otherwise you will not shutdown the Netty threads.
If you create a client resource, you must close/dispose it; otherwise you will not shutdown the Netty threads.
Register a celtuce.commands.PubSubListener on a stateful pubsub connection
Register a celtuce.commands.PubSubListener on a stateful pubsub connection
(add-listener! this listener)
(redis-cluster redis-uri
&
{codec :codec
client-options :client-options
{auto-flush :auto-flush
conn-timeout :timeout
conn-unit :unit
client-resources :client-resources
:or {auto-flush true}}
:conn-options
:or {codec (nippy-codec) client-options {}}})
(redis-server redis-uri
&
{codec :codec
client-options :client-options
{auto-flush :auto-flush
conn-timeout :timeout
conn-unit :unit
client-resources :client-resources
:or {auto-flush true}}
:conn-options
:or {codec (nippy-codec) client-options {}}})
Manipulate Redis client and stateful connection
Manipulate Redis client and stateful connection
(commands-dynamic this cmd-class)
(commands-sync this)
(flush-commands this)
(reset this)
(set-options this options)
(shutdown this)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close