| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/sass_cache.R |
| 3 |
\name{sass_cache_get_dir} |
| 4 |
\alias{sass_cache_get_dir} |
| 5 |
\alias{sass_cache_set_dir} |
| 6 |
\title{Get and set the cache object registered for a specific directory} |
| 7 |
\usage{ |
| 8 |
sass_cache_get_dir(dir, create = FALSE) |
| 9 |
|
| 10 |
sass_cache_set_dir(dir, cache) |
| 11 |
} |
| 12 |
\arguments{ |
| 13 |
\item{dir}{A directory. An error will be thrown if the directory does not |
| 14 |
exist.} |
| 15 |
|
| 16 |
\item{create}{If \code{TRUE}, then if the cache directory doesn't exist, or if |
| 17 |
there is not a registered cache object for the directory, create them as |
| 18 |
needed.} |
| 19 |
|
| 20 |
\item{cache}{A \code{\link[=sass_file_cache]{sass_file_cache()}} object, or \code{NULL} if you don't want to |
| 21 |
unset the cache for a directory.} |
| 22 |
} |
| 23 |
\description{ |
| 24 |
Get and set the cache object registered for a specific directory |
| 25 |
} |
| 26 |
\details{ |
| 27 |
If \code{sass_cache_get_dir()} is called for a given directory, before |
| 28 |
\code{sass_cache_set_dir()} has been called for that directory, then it will |
| 29 |
return \code{NULL}. |
| 30 |
|
| 31 |
After \code{sass_cache_set_dir()} is called for a directory, any future calls to |
| 32 |
\code{sass_cache_get_dir()} with that directory will return that specific cache |
| 33 |
object. This can be useful if you customize parameters for the cache object, |
| 34 |
like maximum size or age. |
| 35 |
} |
| 36 |
\seealso{ |
| 37 |
\code{\link[=sass_cache_get]{sass_cache_get()}}, \code{\link[=sass_file_cache]{sass_file_cache()}}, \code{\link[=sass]{sass()}} |
| 38 |
} |
| 39 |
\keyword{internal} |