Skip to content

Instantly share code, notes, and snippets.

@ddossot
Created August 5, 2013 17:50
Show Gist options
  • Save ddossot/6157906 to your computer and use it in GitHub Desktop.
Save ddossot/6157906 to your computer and use it in GitHub Desktop.
Mule Redis Connector Sample Configuration
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:redis="http://www.mulesoft.org/schema/mule/redis"
xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.4.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/redis http://www.mulesoft.org/schema/mule/redis/3.4/mule-redis.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
<redis:config name="Redis" doc:name="Redis" />
<flow name="redis-exampleFlow1" doc:name="redis-exampleFlow1">
<http:inbound-endpoint exchange-pattern="request-response"
host="localhost" port="8081" path="tracking/wb.gif" doc:name="HTTP" />
<async doc:name="Async">
<redis:hash-increment config-ref="Redis"
field="#[message.inboundProperties.pageId]" key="#[message.inboundProperties.userId]"
doc:name="Redis" />
</async>
<http:response-builder status="204" contentType="image/gif"
doc:name="HTTP Response Builder" />
</flow>
</mule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment