chore: update comment

This commit is contained in:
Shivam Mishra
2024-08-22 17:56:34 +05:30
parent 311a0d1bc3
commit b894a852d2
+1 -1
View File
@@ -54,7 +54,7 @@ class Integrations::OpenaiBaseService
return nil unless event_is_cacheable?
# if the response is a hash, save it as a json
# This allows the fetching to be simplified
# This allows the parsing to be simplified when getting from cache
response = response.to_json if response.is_a?(Hash)
Redis::Alfred.setex(cache_key, response)
end