Class: EVSS::ReferenceData::ResponseStrategy

Inherits:
Common::RedisStore show all
Includes:
Common::CacheAside
Defined in:
lib/evss/reference_data/response_strategy.rb

Constant Summary

Constants inherited from Common::RedisStore

Common::RedisStore::REQ_CLASS_INSTANCE_VARS

Instance Method Summary collapse

Methods included from Common::CacheAside

#cache, #cached?, #do_cached_with

Methods inherited from Common::RedisStore

create, delete, #destroy, #destroyed?, exists?, #expire, find, find_or_build, #initialize, #initialize_dup, keys, #persisted?, pop, redis_key, redis_store, redis_ttl, #save, #save!, #ttl, #update, #update!

Constructor Details

This class inherits a constructor from Common::RedisStore

Instance Method Details

#cache_by_user_and_type(user_uuid, type) ⇒ Object



11
12
13
# File 'lib/evss/reference_data/response_strategy.rb', line 11

def cache_by_user_and_type(user_uuid, type, &)
  do_cached_with(key: "#{user_uuid}:#{type}", &)
end