0.0
No commit activity in last 3 years
No release in over 3 years
Similar to Rails' built in MemoryStore, but adds size limit and expiration.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

LocalCache

A local in memory cache, similar to Rails' built in MemoryStore, but adds more advanced features like cache size limit and object expiration / ttl.

Usage

For Rails

In environment.rb:

require 'local_cache'

config.cache_store = LocalCache.new

See rdoc for initialization options such as max size and default ttl.

For regular usage

cache = LocalCache.new
cache.write("key", value)
val = cache.read("key")