Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Replacement MemCache for Rails with a few enhanced features

Notifications You must be signed in to change notification settings

jisraelsen/enhanced_memcache_store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • Author: Jeremy Israelsen
  • Based On: MemCache Store with delete_matched (Ladislav Martincik)

Description

Adds the delete_matched functionality to MemCache storage in Rails. Also allows read access to the cached list of keys.

Examples

  • Delete any keys that match ‘argle’:

Rails.cache.delete_matched(/argle/)

  • Retrieve a list of all stored keys:

Rails.cache.keys

Installation

  1. Install plugin:

script/plugin install git://github.com/jisraelsen/enhanced_memcache_store.git

  1. Add config.cache_store inside initializer in environment.rb:

config.cache_store = :enhanced_mem_cache_store

Requirements

  • Memcache
  • memcache-client gem (included in Rails)
  • rspec (for running specs)

About

Replacement MemCache for Rails with a few enhanced features

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages