Liking cljdoc? Tell your friends :D

celtuce.connector


as-pubsubclj

(as-pubsub {:keys [redis-client codec]})

Converts a Redis connection to a pub/sub connection.

Converts a Redis connection to a pub/sub connection.
sourceraw docstring

create-client-resourceclj

(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.
sourceraw docstring

destroy-client-resourceclj

(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.
sourceraw docstring

kw->cunitclj

Map of keywords to Java ChronoUnit enum values for time duration conversions.

Map of keywords to Java ChronoUnit enum values for time duration conversions.
sourceraw docstring

kw->dbehaviorclj

Map of keywords to ClientOptions DisconnectedBehavior enum values.

Map of keywords to ClientOptions DisconnectedBehavior enum values.
sourceraw docstring

kw->rtriggerclj

Map of keywords to ClusterTopologyRefreshOptions RefreshTrigger enum values.

Map of keywords to ClusterTopologyRefreshOptions RefreshTrigger enum values.
sourceraw docstring

kw->tunitclj

Map of keywords to Java TimeUnit enum values for time unit conversions.

Map of keywords to Java TimeUnit enum values for time unit conversions.
sourceraw docstring

Listenablecljprotocol

Register a celtuce.commands.PubSubListener on a stateful pubsub connection

Register a celtuce.commands.PubSubListener on a stateful pubsub connection

add-listener!clj

(add-listener! this listener)
sourceraw docstring

redis-clusterclj

(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.
sourceraw docstring

redis-serverclj

(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.
sourceraw docstring

RedisConnectorcljprotocol

Manipulate Redis client and stateful connection

Manipulate Redis client and stateful connection

commands-dynamicclj

(commands-dynamic this cmd-class)

commands-syncclj

(commands-sync this)

flush-commandsclj

(flush-commands this)

resetclj

(reset this)

set-optionsclj

(set-options this options)

shutdownclj

(shutdown this)
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close