Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple key/value mocked storage system

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc.example
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.