Module: Card::Set::All::Follow::ClassMethods
- Defined in:
- tmpsets/set/mod006-05_email/all/follow.rb
Instance Method Summary collapse
- #clear_follower_ids_cache ⇒ Object
- #follow_caches_expired ⇒ Object
- #follower_ids_cache ⇒ Object
- #write_follower_ids_cache(hash) ⇒ Object
Instance Method Details
#clear_follower_ids_cache ⇒ Object
251 252 253 |
# File 'tmpsets/set/mod006-05_email/all/follow.rb', line 251 def clear_follower_ids_cache Card.cache.write FOLLOWER_IDS_CACHE_KEY, nil end |
#follow_caches_expired ⇒ Object
238 239 240 241 |
# File 'tmpsets/set/mod006-05_email/all/follow.rb', line 238 def follow_caches_expired Card.clear_follower_ids_cache Card.clear_user_rule_cache end |
#follower_ids_cache ⇒ Object
243 244 245 |
# File 'tmpsets/set/mod006-05_email/all/follow.rb', line 243 def follower_ids_cache Card.cache.read(FOLLOWER_IDS_CACHE_KEY) || {} end |
#write_follower_ids_cache(hash) ⇒ Object
247 248 249 |
# File 'tmpsets/set/mod006-05_email/all/follow.rb', line 247 def write_follower_ids_cache hash Card.cache.write FOLLOWER_IDS_CACHE_KEY, hash end |