Skip to content

Instantly share code, notes, and snippets.

@rossmason
Forked from ddossot/gist:1260603
Created October 19, 2011 07:06
Show Gist options
  • Save rossmason/1297649 to your computer and use it in GitHub Desktop.
Save rossmason/1297649 to your computer and use it in GitHub Desktop.
Mule Redis DS Ops
<!-- Store the current message payload under my_key
with the provided TTL -->
<redis:set key="my_key" expire="3600" />
<!-- Retrieve the value -->
<redis:get key="my_key" />
<!-- Specific data structures are supported -->
<redis:hash-set key="my_key" field="my_field" />
<redis:hash-get key="my_key" field="my_field" />
<redis:list-push key="my_key" side="LEFT" ifExists="true" />
<redis:list-pop key="my_key" side="RIGHT" />
<redis:set-add key="my_key" />
<redis:set-fetch-random-member key="my_key" />
<redis:set-pop key="my_key" />
<redis:sorted-set-add key="my_key" score="123" />
<redis:sorted-set-select-range-by-score key="my_key"
min="10"
max="0.5"
order="DESCENDING" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment