Project

fscache

0.0
No commit activity in last 3 years
No release in over 3 years
A simple file cache library that serializes objects into temporary directory
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 10.x
~> 3.x
 Project Readme

FsCache

A simple caching library that serializes objects to the filesystem and is compatible with the Rails.cache API

Installation

gem install fscache

Or add the following to your Gemfile (do this for now):

gem 'fscache', :git => 'git://github.com/eddietejeda/fscache.git'

Usage examples

require 'fscache'
filecache = FsCache.new
filecache.write("cache_name", "cache_contents")
contents = filecache.read("cache_name")
filecache.fetch("cache_name") do
    "cache_contents"
end