1 # -*- encoding: binary -*-
4 # The dalli session cache for Flipper uses a default :socket_timeout
5 # of 0.005 seconds. This means your worst-case SSL accept rate will
6 # be ~200 connections/second if your connection to memcached is
7 # slow or non-responsive. Providing :socket_timeout yourself will
9 class Flipper::DalliSessionCache
11 include Flipper::MemcacheCommon
12 def initialize(servers, opts = {})
13 opts[:socket_timeout] ||= 0.005
14 @cache = Dalli::Client.new(servers, opts)