view config/initializers/twitter_tweet_cache_key.rb @ 152:fd7344643903

Better? cache key
author nanaya <me@nanaya.pro>
date Sat, 17 Feb 2018 20:53:00 +0900
parents 148d8c17cb79
children
line wrap: on
line source

class Twitter::Tweet
  def cache_key
    "twitter/tweet/#{id}"
  end
end