This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Another attempt using the built in Rails.cache.fetch (better serialization/deserialization) | |
class ActiveSupport::Cache::DalliStore | |
def fast_fetch(name, options=nil) | |
options ||= {} | |
name = expanded_key name | |
dupe_name = name+'_dupe' | |
if block_given? | |
unless options[:force] |