You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Time to wait (in ms) before giving up on trying to write to Redis.
:redis/allowed-commands
vector of keyword
Optional list of Redis commands that are allowed (default: all).
Segments should be supplied to the plugin in the form:
{:op:sadd:args [redis-key redis-value]}
Where op is a keyword that corresponds 1:1 to a Redis command function
in taoensso.carmine, e.g. :sadd -> taoensso.carmine/sadd. Other
examples are :set, :del, :pfadd, :zadd, :lpush. For more
information on the commands supported by carmine, see
its documentation.
Inject Connection Spec lifecycle
Injects an carmine connection spec into the event map. Will also inject as an :onyx/fn param if :onyx/param? is true.
{:lifecycle/task:use-redis-task:lifecycle/calls:onyx.plugin.redis/reader-conn-spec:redis/uri"redis://127.0.0.1:6379":redis/read-timeout-ms <<optional-timeout>>
:onyx/param?true:lifecycle/doc"Initialises redis conn spec into event map, or as a :onyx.core/param"}
When used with task :use-redis-task and with :onyx/param? true, you can use it from your function e.g.
Alternatively, the conn that is created is placed under :redis/conn in the
event map, for use within lifecycles e.g. :before-batch. Use in this way allows
requests to be batched.
Please see the Carmine documentation for examples for how to use Carmine.
Contributing
Pull requests into the master branch are welcomed.