Class | Merb::Cache::FileStore |
In: |
lib/merb-cache/stores/fundamental/file_store.rb
|
Parent: | AbstractStore |
Cache store that uses files. Usually this is good for fragment and page caching but not object caching.
By default cached files are stored in tmp/cache under Merb.root directory. To use other location pass :dir option to constructor.
File caching does not support expiration time.
dir | [RW] |
Fetches cached data by key if it exists. If it does not, uses passed block to get new cached value and writes it using given key.