Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple key/value mocked storage system
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.rvmrc.example
.travis.yml
Gemfile
README.md
Rakefile
memcache_mock.gemspec

README.md

Memcache Mock

Simple library to mock a key/value storage system.

The API is based in the Dalli Memcache Ruby Client. So any time you need to mock your code that integrates Dalli you can exponse an instance of MemcacheMock instead.

Use

require "memcache_mock"

cache = MemcacheMock.new
cache.set( "key", "value" )
cache.get( "key" )            # => "value"

Status

The actual status is Beta but functional. The API only supports the methods we have needed so far.

If you have any suggestion we'll appreciate pull requests.

Something went wrong with that request. Please try again.