🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

memcache_mock

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memcache_mock

0.0.14
Rubygems
Version published
Maintainers
2
Created
Source

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.

FAQs

Package last updated on 17 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts