Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sass_cache_get_dir

Get and set the cache object registered for a specific directory


Description

Get and set the cache object registered for a specific directory

Usage

sass_cache_get_dir(dir, create = FALSE)

sass_cache_set_dir(dir, cache)

Arguments

dir

A directory. An error will be thrown if the directory does not exist.

create

If TRUE, then if the cache directory doesn't exist, or if there is not a registered cache object for the directory, create them as needed.

cache

A sass_file_cache() object, or NULL if you don't want to unset the cache for a directory.

Details

If sass_cache_get_dir() is called for a given directory, before sass_cache_set_dir() has been called for that directory, then it will return NULL.

After sass_cache_set_dir() is called for a directory, any future calls to sass_cache_get_dir() with that directory will return that specific cache object. This can be useful if you customize parameters for the cache object, like maximum size or age.

See Also


sass

Syntactically Awesome Style Sheets ('Sass')

v0.3.1
MIT + file LICENSE
Authors
Joe Cheng [aut], Timothy Mastny [aut], Richard Iannone [aut] (<https://orcid.org/0000-0003-3925-190X>), Barret Schloerke [aut] (<https://orcid.org/0000-0001-9986-114X>), Carson Sievert [aut, cre] (<https://orcid.org/0000-0002-4958-2844>), RStudio [cph, fnd], Sass Open Source Foundation [ctb, cph] (LibSass library), Greter Marcel [ctb, cph] (LibSass library), Mifsud Michael [ctb, cph] (LibSass library), Hampton Catlin [ctb, cph] (LibSass library), Natalie Weizenbaum [ctb, cph] (LibSass library), Chris Eppstein [ctb, cph] (LibSass library), Adams Joseph [ctb, cph] (json.cpp), Trifunovic Nemanja [ctb, cph] (utf8.h)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.