📚 An abstract base class for backends for the Sass cache. Any key-value store can act as such a backend; it just needs to implement the {#_store} and {#_retrieve} methods.
🔧 To use a cache store with Sass, use the {file:SASS_REFERENCE.md#cache_store-option :cache_store option}.
@abstract
| Use Case | Command / Code | Description |
|---|---|---|
| 🔍 Implement a custom cache store | class MyCacheStore < Sass::CacheStores::Base |
Subclass and implement _store and _retrieve |
| ⚙️ Configure Sass to use a cache store | Sass::Engine.new(scss, :cache_store => MyCacheStore.new) |
Pass the :cache_store option to the engine |
| 📦 Use built-in cache store (e.g., filesystem) | Sass::CacheStores::Filesystem.new |
Instantiate a concrete store and pass it as above |
_retrieve_storekeyretrievestoreGenerated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-28 22:44 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format