Integrating Elasticache with DynamoDB

How would you go about syncing the cache in Redis with a table in dynamoDB? Do I just need to setup Lambda that triggers off of a cloudwatch and updates the table in DynamoDB?