Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple key/value mocked storage system
branch: master
Failed to load latest commit information.
lib Added decr method
test Added decr method
.gitignore first commit
.rvmrc.example first commit
.travis.yml travis.yml
Gemfile first commit v0.0.3
Rakefile first commit
memcache_mock.gemspec Adding collaborator Krzysztof Jablonski

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.


require "memcache_mock"

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


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.