class Rack::PageSpeed::Store::Memcached
Public Class Methods
new(*args)
click to toggle source
# File lib/rack/pagespeed/store/memcached.rb, line 8 def initialize *args @client = Dalli::Client.new *args # @client.stats # let it raise errors if it can't connect end
Public Instance Methods
[](key)
click to toggle source
# File lib/rack/pagespeed/store/memcached.rb, line 13 def [] key @client.get key end
[]=(key, value)
click to toggle source
# File lib/rack/pagespeed/store/memcached.rb, line 17 def []= key, value @client.set key, value true end