\begin{quote}
A cache for managing namespaced sub-\/caches \end{quote}
\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10855}{}\doxysection{Install}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10855}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save fragment-\/cache }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10856}{}\doxysection{Usage}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10856}

\begin{DoxyCode}{0}
\DoxyCodeLine{var Fragment = require('fragment-\/cache');}
\DoxyCodeLine{var fragment = new Fragment(); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10857}{}\doxysection{API}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10857}
\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10858}{}\doxysubsection{$<$a href=\char`\"{}index.\+js\#\+L24\char`\"{}$>$\+Fragment\+Cache$<$/a$>$}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10858}
Create a new {\ttfamily Fragment\+Cache} with an optional object to use for {\ttfamily caches}.

{\bfseries{Example}}


\begin{DoxyCode}{0}
\DoxyCodeLine{var fragment = new FragmentCache(); }

\end{DoxyCode}


{\bfseries{Params}}


\begin{DoxyItemize}
\item {\ttfamily cache\+Name} $\ast$$\ast$\{String\}$\ast$$\ast$
\item {\ttfamily returns} $\ast$$\ast$\{Object\}$\ast$$\ast$\+: Returns the \href{https://github.com/jonschlinkert/map-cache}{\texttt{ map-\/cache}} instance.
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10859}{}\doxysubsection{$<$a href=\char`\"{}index.\+js\#\+L49\char`\"{}$>$.\+cache$<$/a$>$}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10859}
Get cache {\ttfamily name} from the {\ttfamily fragment.\+caches} object. Creates a new {\ttfamily Map\+Cache} if it doesn\textquotesingle{}t already exist.

{\bfseries{Example}}


\begin{DoxyCode}{0}
\DoxyCodeLine{var cache = fragment.cache('files');}
\DoxyCodeLine{console.log(fragment.caches.hasOwnProperty('files'));}
\DoxyCodeLine{//=> true }

\end{DoxyCode}


{\bfseries{Params}}


\begin{DoxyItemize}
\item {\ttfamily cache\+Name} $\ast$$\ast$\{String\}$\ast$$\ast$
\item {\ttfamily returns} $\ast$$\ast$\{Object\}$\ast$$\ast$\+: Returns the \href{https://github.com/jonschlinkert/map-cache}{\texttt{ map-\/cache}} instance.
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10860}{}\doxysubsection{$<$a href=\char`\"{}index.\+js\#\+L67\char`\"{}$>$.\+set$<$/a$>$}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10860}
Set a value for property {\ttfamily key} on cache {\ttfamily name}

{\bfseries{Example}}


\begin{DoxyCode}{0}
\DoxyCodeLine{fragment.set('files', 'somefile.js', new File(\{path: 'somefile.js'\})); }

\end{DoxyCode}


{\bfseries{Params}}


\begin{DoxyItemize}
\item {\ttfamily name} $\ast$$\ast$\{String\}$\ast$$\ast$
\item {\ttfamily key} $\ast$$\ast$\{String\}$\ast$$\ast$\+: Property name to set
\item {\ttfamily val} $\ast$$\ast$\{any\}$\ast$$\ast$\+: The value of {\ttfamily key}
\item {\ttfamily returns} $\ast$$\ast$\{Object\}$\ast$$\ast$\+: The cache instance for chaining
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10861}{}\doxysubsection{$<$a href=\char`\"{}index.\+js\#\+L93\char`\"{}$>$.\+has$<$/a$>$}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10861}
Returns true if a non-\/undefined value is set for {\ttfamily key} on fragment cache {\ttfamily name}.

{\bfseries{Example}}


\begin{DoxyCode}{0}
\DoxyCodeLine{var cache = fragment.cache('files');}
\DoxyCodeLine{cache.set('somefile.js');}
\DoxyCodeLine{}
\DoxyCodeLine{console.log(cache.has('somefile.js'));}
\DoxyCodeLine{//=> true}
\DoxyCodeLine{}
\DoxyCodeLine{console.log(cache.has('some-\/other-\/file.js'));}
\DoxyCodeLine{//=> false }

\end{DoxyCode}


{\bfseries{Params}}


\begin{DoxyItemize}
\item {\ttfamily name} $\ast$$\ast$\{String\}$\ast$$\ast$\+: Cache name
\item {\ttfamily key} $\ast$$\ast$\{String\}$\ast$$\ast$\+: Optionally specify a property to check for on cache {\ttfamily name}
\item {\ttfamily returns} $\ast$$\ast$\{Boolean\}$\ast$$\ast$
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10862}{}\doxysubsection{$<$a href=\char`\"{}index.\+js\#\+L115\char`\"{}$>$.\+get$<$/a$>$}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10862}
Get {\ttfamily name}, or if specified, the value of {\ttfamily key}. Invokes the \href{\#cache}{\texttt{ cache}} method, so that cache {\ttfamily name} will be created it doesn\textquotesingle{}t already exist. If {\ttfamily key} is not passed, the entire cache ({\ttfamily name}) is returned.

{\bfseries{Example}}


\begin{DoxyCode}{0}
\DoxyCodeLine{var Vinyl = require('vinyl');}
\DoxyCodeLine{var cache = fragment.cache('files');}
\DoxyCodeLine{cache.set('somefile.js', new Vinyl(\{path: 'somefile.js'\}));}
\DoxyCodeLine{console.log(cache.get('somefile.js'));}
\DoxyCodeLine{//=> <File "{}somefile.js"{}> }

\end{DoxyCode}


{\bfseries{Params}}


\begin{DoxyItemize}
\item {\ttfamily name} $\ast$$\ast$\{String\}$\ast$$\ast$
\item {\ttfamily returns} $\ast$$\ast$\{Object\}$\ast$$\ast$\+: Returns cache {\ttfamily name}, or the value of {\ttfamily key} if specified
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10863}{}\doxysection{About}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10863}
\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10864}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10864}

\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/base}{\texttt{ base}}\+: base is the foundation for creating modular, unit testable and highly pluggable node.\+js applications, starting… \href{https://github.com/node-base/base}{\texttt{ more}} $\vert$ \href{https://github.com/node-base/base}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/map-cache}{\texttt{ map-\/cache}}\+: Basic cache object for storing key-\/value pairs. $\vert$ \href{https://github.com/jonschlinkert/map-cache}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10865}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10865}
Pull requests and stars are always welcome. For bugs and feature requests, \href{../../issues/new}{\texttt{ please create an issue}}.\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10866}{}\doxysubsection{Building docs}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10866}
\+\_\+(This document was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}} (a \href{https://github.com/verbose/verb}{\texttt{ verb}} generator), please don\textquotesingle{}t edit the readme directly. Any changes to the readme must be made in .verb.md.)\+\_\+

To generate the readme and API documentation with \href{https://github.com/verbose/verb}{\texttt{ verb}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/g verb verb-\/generate-\/readme \&\& verb }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10867}{}\doxysubsection{Running tests}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10867}
Install dev dependencies\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/d \&\& npm test }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10868}{}\doxysubsection{Author}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10868}
{\bfseries{Jon Schlinkert}}


\begin{DoxyItemize}
\item \href{https://github.com/jonschlinkert}{\texttt{ github/jonschlinkert}}
\item \href{http://twitter.com/jonschlinkert}{\texttt{ twitter/jonschlinkert}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_fragment_cache_README_autotoc_md10869}{}\doxysubsection{License}\label{md_sfcode_node_modules_fragment_cache_README_autotoc_md10869}
Copyright © 2016, \href{https://github.com/jonschlinkert}{\texttt{ Jon Schlinkert}}. Released under the \href{https://github.com/jonschlinkert/fragment-cache/blob/master/LICENSE}{\texttt{ MIT license}}.

\DoxyHorRuler{0}


{\itshape This file was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}}, v0.\+2.\+0, on October 17, 2016.} 