Module: Card::Set::All::Follow::FollowerIds::ClassMethods

Defined in:
platypus/tmp/set/gem-defaults/mod028-follow/all/follow/follower_ids.rb

Overview

follow cache methods on Card class

Instance Method Summary collapse

Instance Method Details

#clear_follower_ids_cacheObject



45
46
47
# File 'platypus/tmp/set/gem-defaults/mod028-follow/all/follow/follower_ids.rb', line 45

def clear_follower_ids_cache
  Card.cache.write FOLLOWER_IDS_CACHE_KEY, nil
end

#follow_caches_expiredObject



32
33
34
35
# File 'platypus/tmp/set/gem-defaults/mod028-follow/all/follow/follower_ids.rb', line 32

def follow_caches_expired
  Card.clear_follower_ids_cache
  Card::Rule.clear_preference_cache
end

#follower_ids_cacheObject



37
38
39
# File 'platypus/tmp/set/gem-defaults/mod028-follow/all/follow/follower_ids.rb', line 37

def follower_ids_cache
  Card.cache.read(FOLLOWER_IDS_CACHE_KEY) || {}
end

#write_follower_ids_cache(hash) ⇒ Object



41
42
43
# File 'platypus/tmp/set/gem-defaults/mod028-follow/all/follow/follower_ids.rb', line 41

def write_follower_ids_cache hash
  Card.cache.write FOLLOWER_IDS_CACHE_KEY, hash
end