Sha256: 652d86d231325dfc1a67e3040db45c9082d949c37159c26db23e383bebf0922b

Contents?: true

Size: 401 Bytes

Versions: 8

Compression:

Stored size: 401 Bytes

Contents

class Memcache
  class NullServer
    def name
      "null"
    end

    def flush_all(delay = nil)
    end

    def get(keys)
      keys.kind_of?(Array) ? {} : nil
    end

    def incr(key, amount = nil)
      nil
    end

    def delete(key, expiry = nil)
      nil
    end

    def set(key, value, expiry = nil)
      nil
    end

    def add(key, value, expiry = nil)
      nil
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
ninjudd-memcache-0.9.0 lib/memcache/null_server.rb
ninjudd-memcache-0.9.1 lib/memcache/null_server.rb
memcache-1.2.0 lib/memcache/null_server.rb
segmented-memcache-1.2.1 lib/memcache/null_server.rb
segmented-memcache-1.2.0 lib/memcache/null_server.rb
memcache-1.1.0 lib/memcache/null_server.rb
memcache-1.0.1 lib/memcache/null_server.rb
memcache-1.0.0 lib/memcache/null_server.rb