Skip to content

appoxy/local_cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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")

About

Simple cache with size limit and time outs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published