Class: VAProfileRedis::Cache

Inherits:
Object
  • Object
show all
Includes:
SentryLogging
Defined in:
app/models/va_profile_redis/cache.rb

Class Method Summary collapse

Methods included from SentryLogging

#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger

Class Method Details

.invalidate(user) ⇒ Object

Invalidates the cache set in VAProfileRedis::ContactInformation through our Common::RedisStore#destroy method.

Parameters:

  • user (User)

    The current user



14
15
16
17
18
# File 'app/models/va_profile_redis/cache.rb', line 14

def self.invalidate(user)
  contact_info = VAProfileRedis::ContactInformation.find(user.uuid)

  contact_info.destroy if contact_info.present?
end