mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Initial SPIKE into redis for cache
This commit is contained in:
@@ -44,6 +44,8 @@ from app.errors import (
|
||||
InvalidRequest
|
||||
)
|
||||
|
||||
from app import redis_client
|
||||
|
||||
register_errors(notifications)
|
||||
|
||||
|
||||
@@ -204,6 +206,9 @@ def get_notification_statistics_for_day():
|
||||
|
||||
@notifications.route('/notifications/<string:notification_type>', methods=['POST'])
|
||||
def send_notification(notification_type):
|
||||
|
||||
current_app.logger.info(redis_client.incr(api_user.service_id))
|
||||
|
||||
if notification_type not in ['sms', 'email']:
|
||||
assert False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user