(as-pubsub {:keys [redis-client codec]})
Converts a Redis connection to a pub/sub connection.
Converts a Redis connection to a pub/sub connection.
(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.
Map of keywords to Java ChronoUnit enum values for time duration conversions.
Map of keywords to Java ChronoUnit enum values for time duration conversions.
Map of keywords to ClientOptions DisconnectedBehavior enum values.
Map of keywords to ClientOptions DisconnectedBehavior enum values.
Map of keywords to ClusterTopologyRefreshOptions RefreshTrigger enum values.
Map of keywords to ClusterTopologyRefreshOptions RefreshTrigger enum values.
Map of keywords to Java TimeUnit enum values for time unit conversions.
Map of keywords to Java TimeUnit enum values for time unit conversions.
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 {}}})
Creates a Redis cluster connection with optional configuration.
Creates a Redis cluster connection with optional configuration.
(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 {}}})
Creates a Redis server connection with optional configuration.
Creates a Redis server connection with optional configuration.
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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |