File: sass_file_cache.Rd

package info (click to toggle)
r-cran-sass 0.3.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,012 kB
  • sloc: cpp: 29,639; ansic: 962; sh: 668; makefile: 321; perl: 56
file content (38 lines) | stat: -rw-r--r-- 1,025 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/file_cache.R
\name{sass_file_cache}
\alias{sass_file_cache}
\title{Create a file cache object}
\usage{
sass_file_cache(dir, max_size = 40 * 1024^2, max_age = Inf)
}
\arguments{
\item{dir}{The directory in which to store the cached files.}

\item{max_size}{The maximum size of the cache, in bytes. If the cache grows
past this size, the least-recently-used objects will be removed until it
fits within this size.}

\item{max_age}{The maximum age of objects in the cache, in seconds. The
default is one week.}
}
\value{
A \link{FileCache} object.
}
\description{
This creates a file cache which is to be used by sass for caching generated
.css files.
}
\examples{
\dontrun{
# Create a cache with the default settings
cache <- sass_file_cache(sass_cache_context_dir())

# Clear the cache
cache$reset()
}

}
\seealso{
\code{\link[=sass_cache_get]{sass_cache_get()}}, \code{\link[=sass_cache_context_dir]{sass_cache_context_dir()}}, \link{FileCache}
}