lib/dalli/client.rb in dalli-3.0.2 vs lib/dalli/client.rb in dalli-3.0.3

- old
+ new

@@ -23,10 +23,11 @@ # Options: # - :namespace - prepend each key with this value to provide simple namespacing. # - :failover - if a server is down, look for and store values on another server in the ring. Default: true. # - :threadsafe - ensure that only one thread is actively using a socket at a time. Default: true. # - :expires_in - default TTL in seconds if you do not pass TTL as a parameter to an individual operation, defaults to 0 or forever - # - :compress - defaults to false, if true Dalli will compress values larger than 1024 bytes before sending them to memcached. + # - :compress - if true Dalli will compress values larger than compression_min_size bytes before sending them to memcached. Default: true. + # - :compression_min_size - the minimum size (in bytes) for which Dalli will compress values sent to Memcached. Defaults to 4K. # - :serializer - defaults to Marshal # - :compressor - defaults to zlib # - :cache_nils - defaults to false, if true Dalli will not treat cached nil values as 'not found' for #fetch operations. # - :digest_class - defaults to Digest::MD5, allows you to pass in an object that responds to the hexdigest method, useful for injecting a FIPS compliant hash object. # - :protocol_implementation - defaults to Dalli::Protocol::Binary which uses the binary protocol. Allows you to pass an alternative implementation using another protocol.