Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source
Show
Ignore:
Timestamp:
12/19/07 22:30:12 (9 months ago)
Author:
bitsweat
Message:

Axe duped code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2-1-caching/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb

    r8443 r8444  
    1111        super(name, ActiveSupport::GZip.compress(Marshal.dump(value)), options.merge(:raw => true)) 
    1212      end 
    13  
    14       def read(key, options = nil) 
    15         super 
    16         @data.get(key) 
    17       rescue MemCache::MemCacheError 
    18         nil 
    19       end 
    20  
    21       def write(key, value, options = nil) 
    22         super 
    23         @data.set(key, value, expires_in(options)) 
    24       rescue MemCache::MemCacheError 
    25         nil 
    26       end 
    2713    end 
    2814  end