Module: Twitter::Cache::Helpers
Instance Method Summary collapse
Instance Method Details
#cache ⇒ Object
8 9 10 |
# File 'lib/twitter/cache/helpers.rb', line 8 def cache @cache ||= Twitter::Cache::Redis.new end |
#config ⇒ Object
4 5 6 |
# File 'lib/twitter/cache/helpers.rb', line 4 def config Twitter::Cache.config end |
#friends_cache ⇒ Object
16 17 18 |
# File 'lib/twitter/cache/helpers.rb', line 16 def friends_cache @friends_cache ||= Twitter::Cache::Redis.new(:friends) end |
#user_cache ⇒ Object
12 13 14 |
# File 'lib/twitter/cache/helpers.rb', line 12 def user_cache @user_cache ||= Twitter::Cache::Redis.new(:user) end |