Sha256: 2427bc32bace6d65ed5aea4ee668f575bafebdd00f550e4aa45a32c985ba0d03
Contents?: true
Size: 458 Bytes
Versions: 3
Compression:
Stored size: 458 Bytes
Contents
require 'dalli' module Momm class Memcached < Storage DEFAULT_OPTIONS = { connection: "localhost:11211", namespace: "momm", compress: true }.freeze attr_reader :connection, :options def initialize(options={}) _options = DEFAULT_OPTIONS.dup.merge options @connection = options.delete(:connection) @options = options end def client @client ||= Dalli::Client.new connection, options end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
momm-0.0.3 | lib/momm/memcached.rb |
momm-0.0.2 | lib/momm/memcached.rb |
momm-0.0.1 | lib/momm/memcached.rb |