2022-12-07 19:51:25 +09:00
|
|
|
class ActivityLogPublisher
|
|
|
|
|
|
|
|
def initialize
|
2023-01-10 05:46:58 +09:00
|
|
|
@redis = RedisConfiguration.new.connection
|
2022-12-07 19:51:25 +09:00
|
|
|
end
|
|
|
|
|
|
|
|
def publish(log_event)
|
|
|
|
@redis.publish('activity_log', Oj.dump(log_event))
|
|
|
|
end
|
|
|
|
end
|