PHPackages                             sitegeist/treasuremap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. sitegeist/treasuremap

ActiveNeos-package[Caching](/categories/caching)

sitegeist/treasuremap
=====================

Switch between multiple cache-backend via environment configuration.

v1.1.0(1mo ago)210.3k↓52.8%GPL-3.0-or-laterPHP

Since May 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/sitegeist/Sitegeist.TreasureMap)[ Packagist](https://packagist.org/packages/sitegeist/treasuremap)[ RSS](/packages/sitegeist-treasuremap/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Sitegeist.TreasureMap
=====================

[](#sitegeisttreasuremap)

Switch between multiple cache `backendConfigurations` based on a `backendDiscriminator` configuration.

This allows switching between cache configurations based on environment variables which enables things like green/blue caches to control cache invalidation during rollouts of larger applications.

### Authors &amp; Sponsors

[](#authors--sponsors)

- Martin Ficzel -

*The development and the public-releases of this package is generously sponsored by our employer .*

Configuration
-------------

[](#configuration)

The 'Sitegeist\\TreasureMap\\Backend\\SwitchableBackend' cache backend is configured by the `backendDiscriminator` and the `backendConfigurations` the discriminator value will define which of the backend `backendConfigurations` will be used to instantiate the actually used backend.

Caches.yaml:

```
Neos_Fusion_Content:
  backend: 'Sitegeist\TreasureMap\Backend\SwitchableBackend'
  backendOptions:
    backendDiscriminator: '%env:GREEN_OR_BLUE%'
    backendConfigurations:
      green:
        backend: 'Neos\Cache\Backend\RedisBackend'
        backendOptions:
          hostname: '%env:REDIS_HOST%'
          port: '%env:REDIS_PORT%'
          database: 11
      blue:
        backend: 'Neos\Cache\Backend\RedisBackend'
        backendOptions:
          hostname: '%env:REDIS_HOST%'
          port: '%env:REDIS_PORT%'
          database: 21
```

Installation
------------

[](#installation)

Sitegeist.TreasureMap is available via packagist run `composer require sitegeist/treasuremap` to install.

We use semantic-versioning so every breaking change will increase the major-version number.

Contribution
------------

[](#contribution)

We will gladly accept contributions. Please send us pull requests.

License
-------

[](#license)

See [LICENSE](LICENSE)

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance92

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1098 days

Total

2

Last Release

40d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/829b4ccb51e8cff3c1e4b59d60cfe8d1b86f6d77fc31a6b3fc99227f432542ca?d=identicon)[mficzel](/maintainers/mficzel)

---

Top Contributors

[![mficzel](https://avatars.githubusercontent.com/u/1309380?v=4)](https://github.com/mficzel "mficzel (4 commits)")

---

Tags

cacheneoscms

### Embed Badge

![Health badge](/badges/sitegeist-treasuremap/health.svg)

```
[![Health](https://phpackages.com/badges/sitegeist-treasuremap/health.svg)](https://phpackages.com/packages/sitegeist-treasuremap)
```

###  Alternatives

[neos/neos

An open source Content Application Platform based on Flow. A set of core Content Management features is resting within a larger context that allows you to build a perfectly customized experience for your users.

1151.0M777](/packages/neos-neos)[neos/neos-development-collection

Neos packages in a joined repository for pull requests.

267103.9k1](/packages/neos-neos-development-collection)[neos/media

The Media package

101.2M53](/packages/neos-media)[flowpack/cachebuster

Cache buster for static resources in Neos

14474.6k1](/packages/flowpack-cachebuster)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
