lib/viewcache.js
function (options) {
	var defaultOptions = {
		viewCacheDir: viewCacheDir,
		expires: 3600
	};
	this.type='flatfile';
	this.prefix='flatfile';
	this.driver = 'fs';
	this._size = 0;
	this._hits = 0;
	this._misses = 0;
	this.options = merge(defaultOptions,options);
	this.expires = this.options.expires;
	viewCacheDir = this.options.viewCacheDir;
	fs.ensureDir(viewCacheDir,function(err){
		if(err){
			console.error(err);
		}
	});
}
function (options) {
	var defaultOptions = {
		viewCacheDir: viewCacheDir,
		expires: 3600
	};
	this.type='flatfile';
	this.prefix='flatfile';
	this.driver = 'fs';
	this._size = 0;
	this._hits = 0;
	this._misses = 0;
	this.options = merge(defaultOptions,options);
	this.expires = this.options.expires;
	viewCacheDir = this.options.viewCacheDir;
	fs.ensureDir(viewCacheDir,function(err){
		if(err){
			console.error(err);
		}
	});
}
function ( options ) { var defaultOptions = { viewCacheDir : viewCacheDir , expires : 3600 } ; this . type = 'flatfile' ; this . prefix = 'flatfile' ; this . driver = 'fs' ; this . _size = 0 ; this . _hits = 0 ; this . _misses = 0 ; this . options = merge ( defaultOptions , options ) ; this . expires = this . options . expires ; viewCacheDir = this . options . viewCacheDir ; fs . ensureDir ( viewCacheDir , function ( err ) { if ( err ) { console . error ( err ) ; } } ) ; }
A core constructor that provides numerous cache helper functions.
@{@link https://github.com/typesettin/periodicjs.core.cache}
@author Yaw Joseph Etse
@constructor
@copyright Copyright (c) 2014 Typesettin. All rights reserved.
@license MIT
@requires module:fs-extra
@requires module:path
@requires module:du
@param {object} options {viewCacheDir}
A core constructor that provides numerous cache helper functions .