Add daemon sample code
Add redis sample code