This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import redis | |
import datetime | |
import time | |
def main(): | |
r = redis.client.StrictRedis() | |
while True: | |
now = datetime.datetime.now() | |
print 'Sending {0}'.format(now) | |
r.publish('clock', now) |