cachebox-standalonelisted
Install: claude install-skill ColdBox/skills
# CacheBox — Standalone Framework
## When to Use This Skill
Use this skill when using CacheBox **outside of a ColdBox application** — as a pure standalone caching library. For ColdBox-integrated caching (WireBox injection, event/view caching, `@cacheable`), use the `coldbox-cache-integration` skill instead.
## Language Mode Reference
Examples use **CFML script** unless noted. For BoxLang replace `component` with `class` and use `cachebox.system` or `coldbox.system` depending on build.
---
## Core Concepts
CacheBox is an enterprise-grade, standalone caching aggregator for ColdFusion/BoxLang that:
- Aggregates multiple named cache providers under one API
- Ships built-in storage backends: RAM (ConcurrentStore), memory-sensitive (ConcurrentSoftReferenceStore), Disk, and JDBC
- Provides pluggable eviction policies: LRU, LFU, FIFO, LIFO, custom
- Broadcasts a rich event model through cache listeners
- Runs embedded in ColdBox or as a pure standalone library
> **Namespace**: Standalone = `cachebox.system.*`; ColdBox-embedded = `coldbox.system.*`
---
## 1. Installation (Standalone)
```bash
box install cachebox
```
Map the installed folder in `Application.cfc`:
```cfscript
this.mappings[ "/cachebox" ] = expandPath( "/path/to/cachebox" );
```
If using CacheBox **inside ColdBox**, skip installation — it is already included.
---
## 2. Modes of Operation
| Mode | Who creates CacheBox | Note |
|------|---------------------|------|
| **Standalone** | You — in `onApplicati